ResourceProvider registered with a root path with a trailing slash cannot be 
unregistered
-----------------------------------------------------------------------------------------

                 Key: SLING-642
                 URL: https://issues.apache.org/jira/browse/SLING-642
             Project: Sling
          Issue Type: Bug
          Components: JCR Resource
    Affects Versions: JCR Resource 2.0.2
            Reporter: Felix Meschberger
            Assignee: Felix Meschberger
             Fix For: JCR Resource 2.0.4


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to