Add possibility to create 303 See Other redirects
Closed, ResolvedPublic

Assigned To
None
Priority
Normal
Author
Denny
Subscribers
Mr.Z-man, Denny, IAlex, wikibugs-l
Projects
Reference
bz21574
Description

Patch that creates the enhancement

The current software only allows redirects with 301 and 302 (and does not even document that, ts). This patch adds also the possibility to create 303 redirects. This is required so that extensions can be compatibel to W3C standards on resource representation serving, as described in Web Architecture http://www.w3.org/TR/webarch/ and especially TAG issue 14 on httpRange http://www.w3.org/2001/tag/issues.html#httpRange-14

The patch also allows to set the response code on redirects to 303. It could be extended for even more redirect codes, but this seems not required yet (I searched the bugzilla list).


Version: 1.16.x
Severity: enhancement

Attached: 303patch

bzimport added a project: MediaWiki-Redirects.Via ConduitNov 21 2014, 10:48 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz21574.
Denny created this task.Via LegacyNov 19 2009, 10:35 PM
Mr.Z-man added a comment.Via ConduitNov 25 2009, 12:16 AM

Is there some proposed use for this in an extension somewhere? With the patch given, it would give the option to use 303, but I don't think anything would ever set it.

Denny added a comment.Via ConduitNov 25 2009, 7:57 AM

Semantic MediaWiki uses it already -- actually the interface allows to set the code, but the implementation does not actually do it. So this patch just fixes the implementation with regards to the API as far as I can tell.

Admittedly, there won't be many extensions that will use it, but for us it is needed in order to be standard conformant.

Thanks for checking.

IAlex added a comment.Via ConduitDec 1 2009, 8:57 PM

Fixed in r59638.

Add Comment