Page MenuHomePhabricator

JSON error reporting
Closed, ResolvedPublic

Description

Author: bugzilla

Description:
The following ask query is likely to max out query size or depth:

[[Category:Letters]][[Letter::||A||B||C||D||E||F||G||H||I||J||K||L||M||N||O||P||Q||R||S||T||U||V||W||X||Y||Z]]

The error shows "The following query conditions could not be considered due to the wikis restrictions in query size or depth".

This is fine, but this error is not given back in the JSON version. The result is that "Z" may never get queried, but the Ask web service does not reveal the error that the UI does.

Would be nice to have feedback in an accepted format (HTTP status codes, good error messages) for the JSON version.

Thanks,

Ryan

Version: unspecified
Severity: normal

Details

Reference
bz48586

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:44 AM
bzimport set Reference to bz48586.
bzimport added a subscriber: Unknown Object (MLST).

Related URL: https://gerrit.wikimedia.org/r/64447 (Gerrit Change I528d2f8d2fc03ef29e76a81e0f132754d425fcf0)

Unknown Object (User) added a comment.May 17 2013, 10:10 PM

This certainly a legitimate request, now added for SMW 1.9 which will output [1] for the cited example.

[1]

{

"query": {
    "errors": [
        "The following query conditions could not be considered due to the wikis restrictions in query size or depth: +.",
        "\"||A\" cannot be used as a page name in this wiki."
    ]
}

}

Unknown Object (User) added a comment.Jul 5 2013, 3:51 AM

Solution and test merged with [1] for SMW 1.9

[1] https://gerrit.wikimedia.org/r/#/c/65646

Change 64447 abandoned by Mwjames:
(Bug 48586) ApiAsk add error output

Reason:
Merged with [1]

[1] https://gerrit.wikimedia.org/r/#/c/65646

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