Page MenuHomePhabricator

user gets dropped to Main Page instead of upload wizard page
Closed, ResolvedPublic

Description

If starting as logged out user from http://commons.wikimedia.org/wiki/Special:UploadWizard -> then the "Not logged in" page is displayed -> and after logging in -> user get's redirected to Main_Page instead of special upload wizard page.


Version: unspecified
Severity: normal

Details

Reference
bz30728

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:55 PM
bzimport added a project: UploadWizard.
bzimport set Reference to bz30728.
bzimport added a subscriber: Unknown Object (MLST).

just verified that this is still a problem.

Patch was accepted, no longer an issue.

There are apparently additional prefill fields that we need to handle, currently only campaign is hardcoded.

ew-nospam wrote:

To reproduce, logout and visit e.g.

https://en.wikipedia.org/wiki/List_of_rijksmonuments_in_Bloemendaal_%28town%29

Click on one of the placeholder images on the right. The URL will be sth. like

https://commons.wikimedia.org/w/index.php?title=Special:UploadWizard&campaign=wlm-nl&id=511067&description=Building+at+the+complex+of+the+former+hotel+%22Duin+en+Daal%22&lat=52.40710&lon=4.60919

There are several parameters to pre-fill the UpWiz fields later.

If logged out, you will be directed to the login/account creation page, the parameters are still in the URL:

https://commons.wikimedia.org/w/index.php?title=Special:UserLogin&returnto=Special:UploadWizard&returntoquery=campaign=wlm-nl&id=511115&description=Former+billiard+room&lat=52.40012&lon=4.61276

After logging in (most probably also after account creation) the parameters are reduced to the "campaign" parameter.

Thx for fixing.
elke

Ok it looks like we're missing some escaping, so only the first item in the the 'returntoquery' parameter gets seen -- the first & in it separates it off. Campaign isn't being hardcoded, it's just the first item.

Oops! Sorry about that, this one should work a little better: https://gerrit.wikimedia.org/r/10125