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

        Jesse Long created issue -
        Hide
        Jesse Long added a comment -

        Patch to ResourceMapper and ResourceMapperTest

        Show
        Jesse Long added a comment - Patch to ResourceMapper and ResourceMapperTest
        Jesse Long made changes -
        Field Original Value New Value
        Attachment fix-WICKET-4020.patch [ 12492728 ]
        Martin Grigorov made changes -
        Assignee Peter Ertl [ pete ]
        Hide
        Peter Ertl added a comment -

        thanks for reporting

        Show
        Peter Ertl added a comment - thanks for reporting
        Peter Ertl made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.5.1 [ 12315430 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        4d 4h 43m 1 Peter Ertl 06/Sep/11 15:01

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development