Wicket
  1. Wicket
  2. WICKET-4625

ServletWebRequest#getContextRelativeUrl() sometimes chops off leading characters

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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.

        Activity

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Darryl L. Miles
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development