-handle problem with the missing '/' in the repository group url
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@658528
13f79535-47bb-0310-9956-
ffa450edef68
ArchivaVirtualDavResource resource =
new ArchivaVirtualDavResource( mergedRepositoryContents, logicalResource.getPath(), mimeTypes, locator, this );
-
+
+ // compatibility with MRM-440 to ensure browsing the repository group works ok
+ if ( resource.isCollection() && !resource.getLocator().getResourcePath().endsWith( "/" ) )
+ {
+ throw new BrowserRedirectException( resource.getHref() );
+ }
+
return resource;
}