diff options
author | Brett Porter <brett@apache.org> | 2008-03-30 22:25:19 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2008-03-30 22:25:19 +0000 |
commit | 78ef693f45a337b499a41a3110beb3bc35e15ba5 (patch) | |
tree | 1376085a69f21586b1e19f762cdc00e7e7d3648e | |
parent | 6b08d276ecc31050cd553e8e1ef4debcbe487eee (diff) | |
download | archiva-78ef693f45a337b499a41a3110beb3bc35e15ba5.tar.gz archiva-78ef693f45a337b499a41a3110beb3bc35e15ba5.zip |
[MRM-725] make path handling compliant with the specification. This corrects a problem on websphere
Submitted by: Steffen Grunwald
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-1.0.x@642827 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/mapper/RepositoryActionMapper.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/mapper/RepositoryActionMapper.java b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/mapper/RepositoryActionMapper.java index b12a82bd0..37e657baa 100644 --- a/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/mapper/RepositoryActionMapper.java +++ b/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/mapper/RepositoryActionMapper.java @@ -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() ); |