Last modified: 2014-08-28 16:05:43 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 T71691, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69691 - Ability to recover from an Expired session
Ability to recover from an Expired session
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-18 12:23 UTC by Derk-Jan Hartman
Modified: 2014-08-28 16:05 UTC (History)
8 users (show)

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


Attachments

Description Derk-Jan Hartman 2014-08-18 12:23:02 UTC
Reports of user getting the badtoken API error. This was traced back by the user to the user's session having expired during the steps of the upload.

The wizard (and much of our JS/API/UI btw) does not really handle expired sessions nicely, probably an area where we need to improve. I believe we have an 'assert' for this on the API nowadays ? Perhaps it needs to be used by the UW api calls.

https://commons.wikimedia.org/wiki/Commons:Upload_Wizard_feedback#Internal_error:_bad_token
Comment 1 Tisza Gergő 2014-08-18 13:01:41 UTC
I don't see how an assert would help (unless you are on a wiki which allows anonymous uploads).
Comment 2 Derk-Jan Hartman 2014-08-18 13:34:47 UTC
I think what the user here is after is consistency. So if he enters as a logged in user, he expects to upload and finish all the steps as a user as well. So when we start, check if user is logged in, if he is, add "assert=user", if assert fails, see if we can help the user log in again.
Comment 3 Tisza Gergő 2014-08-18 13:40:14 UTC
Anonymous uploads are disallowed though (actually UW does not work without logging in even if you allow them - that's a separate bug), so AFAIK the only difference an assert makes is that the API error will be assertuserfail instead of badtoken.

A more helpful error message linking (with target=_blank) to the login page would certainly be helpful.
Comment 4 Nemo 2014-08-28 16:05:43 UTC
Maybe something like bug 69314 can be done in UploadWizard as well?

See also bug 69596.

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


Navigation
Links