Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JCR Resource 2.0.2
-
None
Description
If a ResourceProvider is registered with a path with a trailing slash, it is happily and correctly registered. Unregistration fails for such a root path.
Actually root paths used for hooking ResourceProvider instances into the provider tree should never have a trailing slash.
Therefore the JcrResourceResolverFactoryImpl.bindResourceProvider and unbindResourceProvider methods should remove any trailing slash from the root paths before using them for hooking the ResourceProvider up.