You are here: Foswiki>Tasks Web>Item139 (22 Feb 2009, KennethLavrsen)Edit Attach

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

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.0
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: CrawfordCurrie
Waiting For:
Last Change By: KennethLavrsen
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, sad smile

-- 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, sad smile

-- 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 distro:cf51344514de WorkflowPlugin:0d5d511dfc63
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 Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy