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

The URI Manipulation Filter should not interfere with data-sly-use parameters

    XMLWordPrintableJSON

Details

    Description

      The following HTL construct will result in an error when trying to initialise the passed use object:

      <div data-sly-use.pojo="${'org.example.Pojo' @ path='/a/b/c'}"></div>
      

      What will happen currently is that the path option will be interpreted as a URI manipulation indicator, with the construct being equivalent to:

      <div data-sly-use.pojo="/a/b/c/org.example.Pojo"></div>
      

      The bug is caused by the fact that the org.apache.sling.scripting.sightly.impl.filter.URIManipulationFilter acts on all contexts, except for data-sly-template and data-sly-call. However, the filter should exclude data-sly-template, data-sly-call, data-sly-use, data-sly-resource (handled in a runtime extension) and data-sly-include (also handled in a runtime extension).

      Attachments

        Issue Links

          Activity

            People

              radu Radu Cotescu
              radu Radu Cotescu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: