Package org.opennms.netmgt.jetty
Class ApproveAbsolutePathAliases
- java.lang.Object
-
- org.opennms.netmgt.jetty.ApproveAbsolutePathAliases
-
- All Implemented Interfaces:
org.eclipse.jetty.server.handler.ContextHandler.AliasCheck
public class ApproveAbsolutePathAliases extends Object implements org.eclipse.jetty.server.handler.ContextHandler.AliasCheck
In certain Spring MVC pages, duplicate slashes are added to the URLs, leading to aliases of the form: /opt/opennms/jetty-webapps/opennms/WEB-INF/jsp/support/index.jsp with resources of the form: /opt/opennms/jetty-webapps/opennms/WEB-INF/jsp//support/index.jsp ThisContextHandler.AliasCheck
will approve paths, if the resource points to a file, and the absolute path of the file matches the alias.- Author:
- jwhite
-
-
Constructor Summary
Constructors Constructor Description ApproveAbsolutePathAliases()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(String path, org.eclipse.jetty.util.resource.Resource resource)
-
-
-
Method Detail
-
check
public boolean check(String path, org.eclipse.jetty.util.resource.Resource resource)
- Specified by:
check
in interfaceorg.eclipse.jetty.server.handler.ContextHandler.AliasCheck
-
-