You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jeremy Thomerson (JIRA)" <ji...@apache.org> on 2010/12/17 00:37:01 UTC

[jira] Created: (WICKET-3259) Filter path is occasionally null when forwarding a request

Filter path is occasionally null when forwarding a request
----------------------------------------------------------

                 Key: WICKET-3259
                 URL: https://issues.apache.org/jira/browse/WICKET-3259
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.5-M3, 1.4.14
            Reporter: Jeremy Thomerson
            Assignee: Jeremy Thomerson
            Priority: Minor
         Attachments: relativeurlproblem.tar.gz

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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3259) Filter path is occasionally null when forwarding a request

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972762#action_12972762 ] 

Martin Grigorov commented on WICKET-3259:
-----------------------------------------

I can't reproduce this in 1.5.
For some reason the error page mapping from web.xml doesn't work here ...
A request to 404 page never comes

> Filter path is occasionally null when forwarding a request
> ----------------------------------------------------------
>
>                 Key: WICKET-3259
>                 URL: https://issues.apache.org/jira/browse/WICKET-3259
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.14, 1.5-M3
>            Reporter: Jeremy Thomerson
>            Assignee: Jeremy Thomerson
>            Priority: Minor
>         Attachments: relativeurlproblem.tar.gz
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3259) Filter path is occasionally null when forwarding a request

Posted by "Jeremy Thomerson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972795#action_12972795 ] 

Jeremy Thomerson commented on WICKET-3259:
------------------------------------------

Martin,

  I added a new ticket (WICKET-3267) based on your comment so that it wouldn't get lost.  If 1.5 really isn't working with error pages, we need to investigate / fix.  I haven't tried it on trunk yet.

Thanks,
Jeremy

> Filter path is occasionally null when forwarding a request
> ----------------------------------------------------------
>
>                 Key: WICKET-3259
>                 URL: https://issues.apache.org/jira/browse/WICKET-3259
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.14, 1.5-M3
>            Reporter: Jeremy Thomerson
>            Assignee: Jeremy Thomerson
>            Priority: Minor
>         Attachments: relativeurlproblem.tar.gz
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3259) Filter path is occasionally null when forwarding a request

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972837#action_12972837 ] 

Martin Grigorov commented on WICKET-3259:
-----------------------------------------

The problem in 1.5 is fixed.
There are no NPEs in 1.5, so if there is nothing more to do in 1.4 then please close this ticket.

> Filter path is occasionally null when forwarding a request
> ----------------------------------------------------------
>
>                 Key: WICKET-3259
>                 URL: https://issues.apache.org/jira/browse/WICKET-3259
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.14, 1.5-M3
>            Reporter: Jeremy Thomerson
>            Assignee: Jeremy Thomerson
>            Priority: Minor
>         Attachments: relativeurlproblem.tar.gz
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-3259) Filter path is occasionally null when forwarding a request

Posted by "Jeremy Thomerson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Thomerson resolved WICKET-3259.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4.15

> Filter path is occasionally null when forwarding a request
> ----------------------------------------------------------
>
>                 Key: WICKET-3259
>                 URL: https://issues.apache.org/jira/browse/WICKET-3259
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.14, 1.5-M3
>            Reporter: Jeremy Thomerson
>            Assignee: Jeremy Thomerson
>            Priority: Minor
>             Fix For: 1.4.15
>
>         Attachments: relativeurlproblem.tar.gz
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3259) Filter path is occasionally null when forwarding a request

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972308#action_12972308 ] 

Hudson commented on WICKET-3259:
--------------------------------

Integrated in Apache Wicket 1.4.x #336 (See [https://hudson.apache.org/hudson/job/Apache%20Wicket%201.4.x/336/])
    fixes WICKET-3259 for wicket-1.4.x branch


> Filter path is occasionally null when forwarding a request
> ----------------------------------------------------------
>
>                 Key: WICKET-3259
>                 URL: https://issues.apache.org/jira/browse/WICKET-3259
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.14, 1.5-M3
>            Reporter: Jeremy Thomerson
>            Assignee: Jeremy Thomerson
>            Priority: Minor
>         Attachments: relativeurlproblem.tar.gz
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-3259) Filter path is occasionally null when forwarding a request

Posted by "Jeremy Thomerson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-3259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972295#action_12972295 ] 

Jeremy Thomerson commented on WICKET-3259:
------------------------------------------

It's important to note that this only happens when using the servlet, not the filter.

> Filter path is occasionally null when forwarding a request
> ----------------------------------------------------------
>
>                 Key: WICKET-3259
>                 URL: https://issues.apache.org/jira/browse/WICKET-3259
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.14, 1.5-M3
>            Reporter: Jeremy Thomerson
>            Assignee: Jeremy Thomerson
>            Priority: Minor
>         Attachments: relativeurlproblem.tar.gz
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-3259) Filter path is occasionally null when forwarding a request

Posted by "Jeremy Thomerson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Thomerson updated WICKET-3259:
-------------------------------------

    Attachment: relativeurlproblem.tar.gz

quickstart that demonstrates the problem

> Filter path is occasionally null when forwarding a request
> ----------------------------------------------------------
>
>                 Key: WICKET-3259
>                 URL: https://issues.apache.org/jira/browse/WICKET-3259
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.14, 1.5-M3
>            Reporter: Jeremy Thomerson
>            Assignee: Jeremy Thomerson
>            Priority: Minor
>         Attachments: relativeurlproblem.tar.gz
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.