Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.5.6
-
None
Description
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.