From cde09d3a597096fd5579bd7bb5ade5960bdf26d8 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Wed, 3 Sep 2014 01:46:37 +0900 Subject: [PATCH] Fix plugin path problem --- src/main/scala/servlet/PluginActionInvokeFilter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/servlet/PluginActionInvokeFilter.scala b/src/main/scala/servlet/PluginActionInvokeFilter.scala index cc5c95796..707657961 100644 --- a/src/main/scala/servlet/PluginActionInvokeFilter.scala +++ b/src/main/scala/servlet/PluginActionInvokeFilter.scala @@ -21,7 +21,7 @@ class PluginActionInvokeFilter extends Filter with SystemSettingsService with Re (req, res) match { case (request: HttpServletRequest, response: HttpServletResponse) => { 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)){ chain.doFilter(req, res) }