]> source.dussan.org Git - archiva.git/commitdiff
[MRM-725] make path handling compliant with the specification. This corrects a proble...
authorBrett Porter <brett@apache.org>
Sun, 30 Mar 2008 22:26:18 +0000 (22:26 +0000)
committerBrett Porter <brett@apache.org>
Sun, 30 Mar 2008 22:26:18 +0000 (22:26 +0000)
Submitted by: Steffen Grunwald
Merged from: r642827

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@642828 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/mapper/RepositoryActionMapper.java

index b12a82bd0c62cd7cd48249ab7a77c850f09190ba..37e657baaabcc99e22236dff0d0840fc3319abfa 100644 (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() );