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

ResourceResolverImpl.mangleNamespace and unmangleNamespaces behave differently

    XMLWordPrintableJSON

Details

    Description

      Currently everything which smells like a namespace is automatically mangled during the call of ResourceResolver.map. But only registered namespaces are unmangled automatically during ResourceResolver.resolve. This should be fixed, so that mangling an arbitrary string and afterwards unmangling that, should always return the original string.

      You can see the according code in https://fisheye6.atlassian.com/browse/~br=trunk/sling/trunk/bundles/resourceresolver/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java?r=1590034#to1010.
      There is no namespace check during mangling.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: