As previously mentioned on the mailing list.
I had a situation where a page that I was testing was
sending back a series of 302 responses and entered into
a recursive loop since the location header started to
repeat. This was giving a StackOverflowException, as
demonstrated by the included test cases. The patch to
WebWindow.java fixes this.
The patch was created against the HEAD on the date of
submission using Eclipse 3.0.1 and has been
successfully applied locally against the same.
Please note the attempted ExecuteAroundMethod in
WebWindow.getRequest(WebRequest). It passes the tests
that I've supplied, but I think that there could be
more rigorous tests which would break it - I just can't
think what they might be at the moment! I would
appreciate a reviewer checking that this part is correct.
Log in to post a comment.