Page MenuHomePhabricator

spurious #ask results with unknown namespace
Closed, ResolvedPublic

Description

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


Version: unspecified
Severity: normal

Details

Reference
bz33177

Event Timeline

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

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).

Thanks for the tips and explanation.