Red Hat Bugzilla – Bug 111353
RedirectSignal fails with relative URLs
Last modified: 2007-06-17 18:04:57 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5)
Description of problem:
I know this it is against the relevant RFC to send a relative
redirect, however this is an exceptionally useful thing to have. I had
always assumed that RedirectSignal rewrote relative redirects, but
java.lang.IllegalStateException: The URL is relative and won't
dispatch correctly under some servlet containers; the URL is 'index.jsp'
at com.arsdigita.util.Assert.assertTrue(Assert.java(Compiled Code))
seems to suggest that it didn't.
Given that this code used to work in practise, breaking it now seems a
RedirectSignal should trap relative URLs and rewrite them to be full
URLS based on the context of the current request. Otherwise this exact
code will have to be duplicated everywhere a relative redirect is desired.
As it stands this is a regression.
Version-Release number of selected component (if applicable):