Last modified: 2014-03-07 11:44:09 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 T46649, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44649 - Use Post/Redirect/Get for setlang
Use Post/Redirect/Get for setlang
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 61115
  Show dependency treegraph
 
Reported: 2013-02-04 19:27 UTC by Fomafix
Modified: 2014-03-07 11:44 UTC (History)
7 users (show)

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


Attachments
POST instead of GET for setlang (819 bytes, patch)
2013-02-07 08:49 UTC, Fomafix
Details

Description Fomafix 2013-02-04 19:27:04 UTC
The parameter setlang should use [[Post/Redirect/Get]].
Comment 1 Niklas Laxström 2013-02-04 19:47:41 UTC
The "parameter" cannot use anything, since the user can type it in himself as well.

Redirect introduces latency, and the usual reasons (avoiding double forms submission) don't seem to apply here.
Comment 2 Fomafix 2013-02-07 08:49:04 UTC
Created attachment 11745 [details]
POST instead of GET for setlang

setlang changes a setting so it should use POST instead of GET.

A simple POST without redirect would also be possible. See patch.

But with a simple POST the problems described in [[Post/Redirect/Get]] still exist.
Comment 3 Andre Klapper 2013-02-08 09:37:59 UTC
Fomafix: Thanks! Could you put the patch into Gerrit, or is that not possible?
Comment 4 Amir E. Aharoni 2014-01-30 08:04:36 UTC
I don't understand what is the advantage of doing this. Can anybody explain? If there is no clear advantage, I'd go for WONTFIX.
Comment 5 Gerrit Notification Bot 2014-01-30 12:23:25 UTC
Change 110360 had a related patch set uploaded by Gerrit Patch Uploader:
(Bug 44649) Use POST instead of GET with setlang to change user settings

https://gerrit.wikimedia.org/r/110360
Comment 6 Fomafix 2014-01-30 12:24:19 UTC
With setlang the user setting will set again when you reload the page.
Comment 7 Gerrit Notification Bot 2014-01-31 16:16:51 UTC
Change 110360 had a related patch set uploaded by Gerrit Patch Uploader:
Use POST instead of GET with setlang to change user settings

https://gerrit.wikimedia.org/r/110360

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


Navigation
Links