Last modified: 2014-02-12 23:47:33 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 T44709, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42709 - Cross domain tokens
Cross domain tokens
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
beta (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Arthur Richards
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-05 01:13 UTC by Jon
Modified: 2014-02-12 23:47 UTC (History)
9 users (show)

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


Attachments

Description Jon 2012-12-05 01:13:01 UTC
Currently when adding a photo to an article it uploads it to Commons however it doesn't add the image to the article.

Looking closely - the api call to prepend the image to the article gets a response of {"servedby":"srv253","error":{"code":"badtoken","info":"Invalid token"}}
1

It appears it is sending the token received from:
http://commons.wikimedia.org/w/api.php?format=json&action=tokens&type=edit&origin=http%3A%2F%2Fen.m.wikipedia.org

rather than the token for the current wiki.
Comment 1 Jon 2012-12-05 02:08:08 UTC
https://gerrit.wikimedia.org/r/36947
Comment 2 Arthur Richards 2012-12-05 19:58:33 UTC
Merged to master

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


Navigation
Links