https://bugzilla.wikimedia.org/show_bug.cgi?id=38715

       Web browser: ---
             Bug #: 38715
           Summary: Requesting tokens when not authenticated
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


When requesting a token via action=tokens when not logged in

I get the response 
{
    "warnings": {
        "tokens": {
            "*": "Action 'import' is not allowed for the current user"
        }
    },
    "tokens": [

    ]
}

To be consistent with the rest of the api, this should return a json object
with an error key so that it is clear that this is an error.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to