Fix plugin path problem

This commit is contained in:
Naoki Takezoe
2014-09-03 01:46:37 +09:00
parent 5674f0e980
commit cde09d3a59

View File

@@ -21,7 +21,7 @@ class PluginActionInvokeFilter extends Filter with SystemSettingsService with Re
(req, res) match { (req, res) match {
case (request: HttpServletRequest, response: HttpServletResponse) => { case (request: HttpServletRequest, response: HttpServletResponse) => {
Database(req.getServletContext) withTransaction { implicit session => Database(req.getServletContext) withTransaction { implicit session =>
val path = req.asInstanceOf[HttpServletRequest].getRequestURI val path = request.getRequestURI.substring(request.getServletContext.getContextPath.length)
if(!processGlobalAction(path, request, response) && !processRepositoryAction(path, request, response)){ if(!processGlobalAction(path, request, response) && !processRepositoryAction(path, request, response)){
chain.doFilter(req, res) chain.doFilter(req, res)
} }