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

Filter path is occasionally null when forwarding a request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.14, 1.5-M3
    • 1.4.15
    • wicket
    • None

    Description

      If you have a 404 specified in your web.xml that points to some wicket page, and that page throws a RestartResponseAtInterceptPage exception, you end up with a NullPointerException when trying to create the URL for the page. The NPE is because forwardUrl is not null, but filterPath is (in ServletWebRequest#getRelativePathPrefixToWicketHandler())

      See the attached quickstart and go to http://localhost:8080/app-context-path/mounted-pattern/akdslfjasdklfj (which doesn't exist) to see the issue.

      Attachments

        1. relativeurlproblem.tar.gz
          5 kB
          Jeremy Thomerson

        Activity

          People

            jthomerson Jeremy Thomerson
            jthomerson Jeremy Thomerson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: