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

mounted URLs fail if filterPath is blank

    XMLWordPrintableJSON

Details

    Description

      The path in RequestParameters needs to begin with a "/" or it will not be found when checking against mounted paths. The slash is prefixed in WicketFilter line 545 when checking isWicketRequest(), but it is not prefixed later when looking for the request target. Proposed fix in patch (to be attached) performs this operation in ServletWebRequest.getPath(); I'm not sure if that is the ideal spot, but I've confirmed that it fixes the problem.

      Attachments

        1. slashCheck.diff
          0.9 kB
          Nathan Hamblen

        Activity

          People

            almaw Alastair Maw
            n8han Nathan Hamblen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: