fix potential bugs

This commit is contained in:
Sebastian Sdorra
2010-11-28 10:40:12 +01:00
parent b59345258b
commit 6074293095
10 changed files with 30 additions and 43 deletions

View File

@@ -220,13 +220,13 @@ public class RepositoryResource extends AbstractResource<Repository>
String ctxPath = request.getContextPath();
url.append(ctxPath);
if (ctxPath.endsWith("/"))
{
ctxPath = ctxPath.substring(0, ctxPath.length() - 1);
}
url.append(ctxPath);
RepositoryHandler handler =
repositoryManager.getHandler(repository.getType());