Bug 111353 - RedirectSignal fails with relative URLs
Summary: RedirectSignal fails with relative URLs
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Web Application Framework
Classification: Retired
Component: other
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-12-02 15:32 UTC by Matthew Booth
Modified: 2007-06-17 22:04 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-06-17 22:04:57 UTC
Embargoed:


Attachments (Terms of Use)

Description Matthew Booth 2003-12-02 15:32:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5)
Gecko/20031026 Firebird/0.7

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
this error:

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))
	at com.arsdigita.web.RedirectSignal.(RedirectSignal.java:65)

seems to suggest that it didn't.

Given that this code used to work in practise, breaking it now seems a
little unhelpful.

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):
Rickshaw


Note You need to log in before you can comment on or make changes to this bug.