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

ResourceMapper throws IllegalStateException when attempting to map a request to a URL ending in a empty segment (directory)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC7
    • Fix Version/s: 1.5.1
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      When a ResourceMapper is mounted

      Description

      ResourceMapper.mapRequest() calls ResourceMapper.removeCachingDecoration() which, throws IllegalStateException if the URL's last segment is an empty string.

      URLs like: path/to/my/non/wicket/directory/ end in a empty segment.

      We must change the behaviour to not attempt to undecorate a URL ending in an empty segment.

        Attachments

          Activity

            People

            • Assignee:
              pete Peter Ertl
              Reporter:
              jesselong Jesse Long
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: