Last modified: 2009-12-01 20:57:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23574, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21574 - Add possibility to create 303 See Other redirects
Add possibility to create 303 See Other redirects
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.16.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-19 22:35 UTC by denny vrandecic
Modified: 2009-12-01 20:57 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch that creates the enhancement (860 bytes, patch)
2009-11-19 22:35 UTC, denny vrandecic
Details

Description denny vrandecic 2009-11-19 22:35:37 UTC
Created attachment 6805 [details]
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).
Comment 1 Alex Z. 2009-11-25 00:16:20 UTC
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.
Comment 2 denny vrandecic 2009-11-25 07:57:16 UTC
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.
Comment 3 Alexandre Emsenhuber [IAlex] 2009-12-01 20:57:52 UTC
Fixed in r59638.

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


Navigation
Links