Page MenuHomePhabricator

Returned API action error should be in XML
Closed, ResolvedPublic

Description

Author: wikiadmin

Description:
Attempting to do a move with api.php?format=xml&action=move...
and $wgEnableWriteAPI at its default of false
returns an error in plain text (not HTML or XML)

unknown_action: Unrecognised value for parameter 'action'

If a separate error code is not in order can it at least do XML?
Could it parse the format parameter first and use it?

The same text error comes from api.php?format=xml&action=bogus.


Version: 1.12.x
Severity: minor

Details

Reference
bz14942

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:09 PM
bzimport set Reference to bz14942.

Bryan.TongMinh wrote:

Already fixed in 1.13 which is due very soon.

*** This bug has been marked as a duplicate of bug 11673 ***