Last modified: 2009-07-09 02:11:04 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 T21545, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19545 - using api to de-flag a revision not already flagged gives very cryptic error message
using api to de-flag a revision not already flagged gives very cryptic error ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
FlaggedRevs (Other open bugs)
unspecified
All All
: Normal trivial (vote)
: ---
Assigned To: Aaron Schulz
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-06 06:29 UTC by Bawolff (Brian Wolff)
Modified: 2009-07-09 02:11 UTC (History)
0 users

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


Attachments

Description Bawolff (Brian Wolff) 2009-07-06 06:29:02 UTC
If I try to de-flag (set flag_accuracy to 0) on a page that is not currently flagged, from the api, I get the following result:

<?xml version="1.0"?><api><error code="unknownerror" info="Unknown error: ``$1&#039;&#039;" /></api>

The expected result would be either:

<?xml version="1.0"?><api><review result="Success" /></api>

As that is what is returned if you try to set the flag_accuracy to a level that the revision already is set to for the other accuracy levels. Or perhaps a more descriptive error message than: Unknown error: ``$1''

Thanks,
Bawolff
Comment 1 Aaron Schulz 2009-07-09 02:11:04 UTC
Improved in r52881

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


Navigation
Links