Wicket
  1. Wicket
  2. WICKET-5114

Url#toString(StringMode.FULL) throws exception if a segment contains two dots

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.0
    • Fix Version/s: 6.7.0, 1.5.11
    • Component/s: wicket
    • Labels:
      None

      Description

      When invoking toString(StringMode.FULL) for a URL like
      /mountPoint/whatever.../
      an IllegalStateException is thrown with message: Cannot render this url in FULL mode because it has a `..` segment: /mountPoint/whatever.../

      The method does not actually check for `..` segments but rather checks whether path.contains("..")

        Activity

        Peter Parson created issue -
        Cedric Gatay made changes -
        Field Original Value New Value
        Attachment fix-WICKET-5114.patch [ 12577449 ]
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Martin Grigorov [ mgrigorov ]
        Fix Version/s 6.7.0 [ 12323964 ]
        Fix Version/s 1.5.11 [ 12324069 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Peter Parson
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development