Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6170

Wrong requestmapper used for cache decorated resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.3.0
    • 8.0.0-M1, 7.4.0
    • wicket
    • None

    Description

      Introduced with the fix for WICKET-6094.

      ResourceMapper.getCompatibilityScore now returns the score of AbstractBookmarkableMapper.getCompatibilityScore minus 1. Unfortunately AbstractBookmarkableMapper.getCompatibilityScore does not remove any caching decoration from the request url and will always return 0. So the score for the ResourceMapper that should handle the request is -1, and e.g. the HomePageMapper with a score of 0 will handle the request.

      Example:
      GET http://localhost/stylesheet.css -> stylesheet
      GET http://localhost/stylesheet-ver-xxxx.css -> homepage

      Somehow ResourceMapper.removeCachingDecoration should be used during getCompatibilityScore.

      Attachments

        1. wicket-resourcemapper.zip
          28 kB
          Sverre Boschman

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              boschman Sverre Boschman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: