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

Bundled scripts in the form of <resourceLabel>.<METHOD>.<extension> override the Sling POST Servlet

    XMLWordPrintableJSON

Details

    Description

      Currently, it is not really possible using bundled scripts to provide a script for a resource label with an HTTP method and at the same time a script for only the HTTP method. Furthermore, when providing the former, there is a small difference in precedence compared to scripts provided via the resource tree.

      In other words, it should be possible to have (for a given resource type, e.g. foo) a foo/POST.jsp and as well as a foo/foo.POST.jsp and they should have the same matching and priority like scripts provided via the resource tree.

      On the metadata level, this can be achieved by just adding the resource label as a selector to the resulting capability but to make it work at runtime, we need to add a match to the bundle render unit lookup.

      Attachments

        Activity

          People

            karlpauls Karl Pauls
            karlpauls Karl Pauls
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h