Add possibility to create 303 See Other redirects
Closed, ResolvedPublic

Assigned To
Mr.Z-man, Denny, IAlex, wikibugs-l

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 and especially TAG issue 14 on httpRange

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

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.