Last modified: 2013-07-05 03:55:26 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 T50586, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48586 - JSON error reporting
JSON error reporting
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 41842
  Show dependency treegraph
 
Reported: 2013-05-17 20:18 UTC by bugzilla
Modified: 2013-07-05 03:55 UTC (History)
4 users (show)

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


Attachments

Description bugzilla 2013-05-17 20:18:45 UTC
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
Comment 1 Gerrit Notification Bot 2013-05-17 22:05:00 UTC
Related URL: https://gerrit.wikimedia.org/r/64447 (Gerrit Change I528d2f8d2fc03ef29e76a81e0f132754d425fcf0)
Comment 2 MWJames 2013-05-17 22:10:37 UTC
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."
        ]
    }
}
Comment 3 MWJames 2013-07-05 03:51:00 UTC
Solution and test merged with [1] for SMW 1.9

[1] https://gerrit.wikimedia.org/r/#/c/65646
Comment 4 Gerrit Notification Bot 2013-07-05 03:51:45 UTC
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

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


Navigation
Links