Foswiki on GitHub is open for business! Next release meeting: Monday September 15, 1300Z

Item139: Do not use an Oops redirect when a URL is mistyped

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine    
It really gets my goat that when you mistype a URL in the URL bar, you get redirected to oops instead of getting an HTTP response code, such as 500.

For example, edit the URL above; change "Tasks" to "Tusks" and hit return. You get redirected to oops, which wipes the URL you nearly typed correctly. Really irritating.

This is a real PITA when, for example, you pasted in a URL and have since wiped the paste buffer.

As well as being really, really irritating, this also limits use of the standard scripts in "REST" type applications.

I'm marking this as a bug rather than an enhancement because it is so stupid.

-- CrawfordCurrie - 11 Nov 2008 - 11:10

IIRC this will be really simple in TSA, but it would be really good to remove the redirects and replace them with proper content - that way the oops functionality isn't created via a re-post to the server using URL params, but rather just rendered directly, and sent to the browser with the proper HTTP response code.

While we're there, we should re-look at the exception handling code, as its hiding (ie, not reporting) information that is thrown to it when coders use 'die' - another thing that is gone in TSA.

-- SvenDowideit - 11 Nov 2008 - 22:47

I replaced the main OopsException redirect (the one that really annoyed me) but there remains an issue with the response code; I can't get it to return anything but a 500 frown

-- CrawfordCurrie - 01 Dec 2008

404 Research Lab

404 - page not found "was this information useful for you? 1-10"

-- MichaelDaum - 02 Dec 2008

Got rid of the worst of the oops redirects. There are still some from plugins, but that'sinevitable frown

-- CrawfordCurrie - 03 Dec 2008

ItemTemplate edit

Summary Do not use an Oops redirect when a URL is mistyped
ReportedBy CrawfordCurrie
Codebase
SVN Range TWiki-4.2.3, Wed, 06 Aug 2008, build 17396
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:1127
TargetRelease patch
ReleasedIn 1.0.0
Topic revision: r7 - 22 Feb 2009, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License