Page MenuHomePhabricator

CargoQueryAPI doesn't expose error when a disallowed field alias is used
Closed, ResolvedPublic

Description

action=cargoquery rejects queries that contain field aliases starting with an underscore (_). However, if the wiki is configured to not display exception details to everyone, this error is not visible to the user that issued the API request. This can cause confusion.

Cargo should expose this error message so that users can fix their API call accordingly.

Event Timeline

Change 908894 had a related patch set uploaded (by TK-999; author: TK-999):

[mediawiki/extensions/Cargo@master] CargoQueryAPI: Expose field alias errors

https://gerrit.wikimedia.org/r/908894

Change 908894 merged by jenkins-bot:

[mediawiki/extensions/Cargo@master] CargoQueryAPI: Expose field alias errors

https://gerrit.wikimedia.org/r/908894