Carl-Eric Menzel created WICKET-4558:
----------------------------------------

             Summary: WicketTester fails with a StringIndexOutOfBounds 
exception when using an external redirect
                 Key: WICKET-4558
                 URL: https://issues.apache.org/jira/browse/WICKET-4558
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.5.6
            Reporter: Carl-Eric Menzel
            Assignee: Carl-Eric Menzel
            Priority: Minor


When testing a component that e.g. throws a 
RedirectToUrlException("http://foo/";) WicketTester fails with a 
StringIndexOutOfBoundsException in ServletWebRequest#getContextRelativeUrl. I'm 
aware that WT doesn't currently support this and needs 
setFollowRedirects(false) in this case, but there should be a more meaningful 
error message than this.

I'll attempt to distinguish local redirects from external ones and providing 
the external URL in a new assertExternalRedirectUrl method instead of having it 
crash and burn.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to