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

Bundled scripts should be registered by path for the main script when overriding

    XMLWordPrintableJSON

Details

    Description

      When a bundled script is provided without a real script but a resource super type, it gets a capability for the resource type and will be registered for that resource type (with the resource super type set). That is done to proxy the resource super type.

      The problem is that the resolver will register a GET/HEAD servlet automatically for resource types that have no other properties set. Consequently, this setup ends up handling all GET requests while it should only handle requests for the default extension (i.e. it overrides requests for .json which would normally be handled by the default GET servlet).

      The fix is for the resolver to not register these proxies as resource types servlets but bind them by path instead.

      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 - 20m
                20m