improve logging and strip matrix parameter like jsessionid for repository resolving

This commit is contained in:
Sebastian Sdorra
2011-11-27 21:01:57 +01:00
parent 72bb3323dc
commit afbba17daf

View File

@@ -659,6 +659,9 @@ public class XmlRepositoryManager extends AbstractRepositoryManager
AssertUtil.assertIsNotEmpty(type); AssertUtil.assertIsNotEmpty(type);
AssertUtil.assertIsNotEmpty(uri); AssertUtil.assertIsNotEmpty(uri);
// remove ;jsessionid, jetty bug?
uri = HttpUtil.removeMatrixParameter(uri);
Repository repository = null; Repository repository = null;
if (handlerMap.containsKey(type)) if (handlerMap.containsKey(type))
@@ -679,6 +682,12 @@ public class XmlRepositoryManager extends AbstractRepositoryManager
} }
} }
if ((repository == null) && logger.isDebugEnabled())
{
logger.debug("could not find repository with type {} and uri {}", type,
uri);
}
return repository; return repository;
} }