[jira] Created: (SLING-642) ResourceProvider registered with a root path with a trailing slash cannot be unregistered

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (SLING-642) ResourceProvider registered with a root path with a trailing slash cannot be unregistered

Robert Munteanu (Jira)
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 | Threaded
Open this post in threaded view
|

[jira] Closed: (SLING-642) ResourceProvider registered with a root path with a trailing slash cannot be unregistered

Robert Munteanu (Jira)

     [ https://issues.apache.org/jira/browse/SLING-642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed SLING-642.
-----------------------------------

    Resolution: Fixed

Fixed in Rev. 691792.

> 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.