[MRM-725] make path handling compliant with the specification. This corrects a problem on websphere

Submitted by: Steffen Grunwald
Merged from: r642827


git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@642828 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2008-03-30 22:26:18 +00:00
parent 4a2cf8553f
commit 9e3f8b3531
1 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,12 @@ public class RepositoryActionMapper
public ActionMapping getMapping( HttpServletRequest httpServletRequest )
{
String path = httpServletRequest.getServletPath();
if ("".equals(path)){
// if JEE 5 spec is correctly implemented, the "/*" pattern implies an empty string in servletpath
path = httpServletRequest.getPathInfo();
}
if ( path.startsWith( BROWSE_PREFIX ) )
{
path = path.substring( BROWSE_PREFIX.length() );