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 Bug
    • Status: Resolved
    • Priority: Major 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.

        Activity

        Hide
        Jesse Long added a comment -

        Patch to ResourceMapper and ResourceMapperTest

        Show
        Jesse Long added a comment - Patch to ResourceMapper and ResourceMapperTest
        Hide
        Peter Ertl added a comment -

        thanks for reporting

        Show
        Peter Ertl added a comment - thanks for reporting

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development