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)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC7
    • 1.5.1
    • wicket
    • None
    • 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

        1. fix-WICKET-4020.patch
          2 kB
          Jesse Long

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: