Last modified: 2012-02-12 16:10:58 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 T35177, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33177 - spurious #ask results with unknown namespace
spurious #ask results with unknown namespace
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:
  Show dependency treegraph
 
Reported: 2011-12-15 20:58 UTC by John McClure
Modified: 2012-02-12 16:10 UTC (History)
2 users (show)

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


Attachments

Description John McClure 2011-12-15 20:58:00 UTC
if i should misspell a namespace, I get a screen full of spurious results that are not useful. May I suggest an error message can be returned when 
  [[some-namespace:+]] is not a defined namespace?
thanks - john
Comment 1 Markus Krötzsch 2012-02-11 19:49:34 UTC
This is normal behaviour. If part of a query is not understood, SMW will run the query anyway with the remaining conditions. In this case, there are no conditions, and all pages (including the historical ones of Bug 18406) are returned. However, I agree that it makes sense to stop query processing in any case if there are errors and no valid conditions were found. This is implemented now in r111255.

In general, you can set $smwgIgnoreQueryErrors = false in LocalSettings to make SMW stop query answering when errors are found (whether or not the query is empty).
Comment 2 John McClure 2012-02-12 16:10:58 UTC
Thanks for the tips and explanation.

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


Navigation
Links