Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-642

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.0.2
    • JCR Resource 2.0.4
    • JCR
    • 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.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: