Last modified: 2014-02-12 23:53:14 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 T47452, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45452 - Uploading a photo when not logged into commons
Uploading a photo when not logged into commons
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Unprioritized critical
: ---
Assigned To: Jon
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-26 22:35 UTC by Jon
Modified: 2014-02-12 23:53 UTC (History)
9 users (show)

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


Attachments

Description Jon 2013-02-26 22:35:12 UTC
If you are logged into en.m.wikipedia.org but not commons the photo upload button appears and all uploads via it fail. This is very sad.
Comment 2 Juliusz Gonera 2013-03-02 00:45:41 UTC
"Not logged into Commons" situation should not ever happen in the first place. I'd rather fix it than change the code to accommodate to it.
https://gerrit.wikimedia.org/r/#/c/51815/
Comment 3 Jon 2013-03-06 02:07:21 UTC
I can consistently replicate this on ios 6.1.2:
* Clear browser settings on iphone
* Using google search search for 'wiki'
* On wiki article click settings and opt into beta
* click donate image
* log in as jdlrobson 2013
* click return to Special:DonateImage
(uploads now fail)

Looking closer at debug console, the login to commons seems to fail. This only seems to effect the first login:

https
Host	commons.wikimedia.org
Path	/wiki/Special:AutoLogin
Query String	token=xxxx
Filename	Special:AutoLogin

Token: xxxxx

Request:
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_2 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B146 Safari/8536.25

Referrer: https://en.m.wikipedia.org/w/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Special:DonateImage

Response

Date: Wed, 06 Mar 2013 01:58:42 GMT
X-Content-Type-Options: nosniff
X-Cache-Lookup: MISS from cp1012.eqiad.wmnet:3128, MISS from cp1003.eqiad.wmnet:80
X-Cache: MISS from cp1012.eqiad.wmnet, MISS from cp1003.eqiad.wmnet
Connection: keep-alive
Content-Length: 825
Server: nginx/1.1.19
Content-Type: image/png

Cache-Control: private, s-maxage=0, max-age=0, must-revalidate


Set-Cookie: centralauth_User=Jdlrobson+2013; expires=Mon, 02-Sep-2013 01:58:42 GMT; path=/; domain=commons.wikimedia.org; secure; httponly, centralauth_Token=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=commons.wikimedia.org; secure; httponly, centralauth_Session=8b4b3615b38bxxxxc7549c2e47b43034; path=/; domain=commons.wikimedia.org; secure; httponly
Comment 4 Jon 2013-03-06 02:11:58 UTC
Simplified steps to reproduce:
* In iPhone settings click clear history and clear cookies and data
* Go to https://en.m.wikipedia.org
* On wiki article click settings and opt into beta
* log in
* go to https://commons.wikimedia.org

Expected: you should be logged into commons but you are not...
Comment 5 Jon 2013-03-06 02:55:34 UTC
Pretty sure I've worked this out. The iPhone has a default setting to not accept cookies from websites that haven't been visited.

Probably an upstream CentralAuth error but have added a workaround in the meantime..
https://gerrit.wikimedia.org/r/52354
Comment 6 Gerrit Notification Bot 2013-03-07 22:48:09 UTC
https://gerrit.wikimedia.org/r/51080 (Gerrit Change Ie0d018de4bb8f86e2dec717a9ed4e1bd5b79119a) | change ABANDONED [by com.google.gerrit.server.events.AccountAttribute@8c05ca]
Comment 7 Arthur Richards 2013-03-22 00:17:07 UTC
https://gerrit.wikimedia.org/r/#/c/54813/1 should take care of this as an interim solution to sorting out bigger issues with CentralAuth.

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


Navigation
Links