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

Cloned ServletWebRequest returns wrong OriginalUrl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.3.0
    • 6.4.0, 1.5.10
    • wicket
    • None

    Description

      ServletWebRequest, when cloned with a new URL, return the incorrect URL from getOriginalUrl(). This presents itself as a problem when using redirect to intercept page in conjunction with a root request mapper that modifies the URL passed to the wrapped request mapper. (incidentally, this does not affect CryptoMapper, since CryptoMapper tries passing both the decrypted and the original, supposedly encrypted, URL to the wrapped request mapper). I have my own path modifying request mapper that is getting affected by this.

      Attachments

        1. WICKET-4922.patch
          1 kB
          Jesse Long

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            jesselong Jesse Long
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: