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

ServletWebRequest#getContextRelativeUrl() sometimes chops off leading characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.7
    • None
    • None
    • None

    Description

      This patch reduces the number of nonsense return value this method might produce. I have clarified the in JavaDoc the expected inputs to the method. It is still possible to still get a nonsense return values in some use cases, all scenarios are documented and tested in a new test case.

      This method presumes that the input "uri" on the 1st argument always has the ContextPath and then the FilterPrefix on the front of the URL.

      Some unit tests were actually checking the nonsense return values were being returned these have been updated.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            dlmiles Darryl L. Miles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: