Skip to content

Commit

Permalink
404 вместо 403 при загрузке топика методом POST
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcom committed Oct 14, 2023
1 parent 67ebc47 commit 4810e89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/ru/org/linux/topic/TopicController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class TopicController(sectionService: SectionService, topicDao: TopicDao, prepar
memoriesDao: MemoriesDao, permissionService: TopicPermissionService,
moreLikeThisService: MoreLikeThisService, topicTagService: TopicTagService,
msgbaseDao: MsgbaseDao, textService: MessageTextService, groupDao: GroupDao) extends StrictLogging {
@RequestMapping(Array("/{section:(?:forum)|(?:news)|(?:polls)|(?:articles)|(?:gallery)}/{group}/{id}"),
@RequestMapping(value = Array("/{section:(?:forum)|(?:news)|(?:polls)|(?:articles)|(?:gallery)}/{group}/{id}"),
method = Array(RequestMethod.GET))
def getMessageNewMain(webRequest: WebRequest, request: HttpServletRequest, response: HttpServletResponse,
@RequestParam(value = "filter", required = false) filter: String,
Expand All @@ -113,7 +113,7 @@ class TopicController(sectionService: SectionService, topicDao: TopicDao, prepar
}
}

@RequestMapping(Array("/{section:(?:forum)|(?:news)|(?:polls)|(?:articles)|(?:gallery)}/{group}/{id}/page{page}"),
@RequestMapping(value = Array("/{section:(?:forum)|(?:news)|(?:polls)|(?:articles)|(?:gallery)}/{group}/{id}/page{page}"),
method = Array(RequestMethod.GET))
def getMessageNewPage(webRequest: WebRequest, request: HttpServletRequest, response: HttpServletResponse,
@RequestParam(value = "filter", required = false) filter: String,
Expand All @@ -123,7 +123,7 @@ class TopicController(sectionService: SectionService, topicDao: TopicDao, prepar
getMessage(section, webRequest, request, response, page, filter, groupName, msgid, 0)
}

@RequestMapping(Array("/{section:(?:forum)|(?:news)|(?:polls)|(?:articles)|(?:gallery)}/{group}/{id}/thread/{threadRoot}"),
@RequestMapping(value = Array("/{section:(?:forum)|(?:news)|(?:polls)|(?:articles)|(?:gallery)}/{group}/{id}/thread/{threadRoot}"),
method = Array(RequestMethod.GET))
def getMessageThread(webRequest: WebRequest, request: HttpServletRequest, response: HttpServletResponse,
@RequestParam(value = "filter", required = false) filter: String,
Expand Down

0 comments on commit 4810e89

Please sign in to comment.