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

ResourceCollector is not weighing scripts with a method in the name correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Resolver 2.6.4
    • Servlets Resolver 2.7.0
    • Scripting
    • None

    Description

      The ResourceCollector that creates the weighted resources for script selection is giving equal priority to scripts that have the method in their path and those that don't. E.g.:

      foo/html.servlet and foo/html.GET.servlet will have the same weight. 

      That is wrong as the one with the GET should have preference.

      Attachments

        Issue Links

          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 - 0.5h
                  0.5h