Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5114

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.5.0
    • 6.7.0, 1.5.11
    • wicket
    • 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("..")

      Attachments

        1. fix-WICKET-5114.patch
          2 kB
          Cedric Gatay

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            pparson Peter Parson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: