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

        Hide
        Cedric Gatay added a comment -

        Added two tests regarding this issue and corrected the bogus part checking if the path was containing two dots with a segment check.

        Show
        Cedric Gatay added a comment - Added two tests regarding this issue and corrected the bogus part checking if the path was containing two dots with a segment check.
        Hide
        Martin Grigorov added a comment -

        Thanks, Cedric!

        Show
        Martin Grigorov added a comment - Thanks, Cedric!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development