Web browser: ---
            Bug ID: 60407
           Summary: API edit token in betalabs is always an anonymous edit
           Product: Wikimedia Labs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: deployment-prep (beta)
    Classification: Unclassified
   Mobile Platform: ---

In developing some test setup/teardown methods via the Mediawiki API, we have
noticed that (beta labs) always returns an
anonymous edit token, even following a successful login.  This does not happen
in other environments - in other environments, the edit API action is
authenticated as expected.

Repro workflow:

1) Request login token: curl -c cookies.txt -X POST

2) Submit login token: curl -b cookies.txt -X POST
obtained in previous step>'

3) Request edit token, reusing the same cookie obtained above: curl -b
cookies.txt -X POST

Response to step #3 is an anonymous edit token: {"tokens":{"edittoken":"+\\"}}

In other environments, such as, the response in step #3 is
something like the following, which is the expected behavior (a valid edit
token is returned):

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
Wikibugs-l mailing list

Reply via email to