Page MenuHomePhabricator

Semantic MediaWiki ask query on URL with = breaks
Closed, ResolvedPublic

Description

When issuing a query using a URL property, if the URL contains = signs SMW handles it wrong.

{{#ask: [[Has URL::http://www.wired.com/geekdad/2012/03/67-books-for-kids/?pid=1185&viewall=true]] | format=count }}

Generates an error:

Some subquery has no valid condition.

The equal signs are causing this. This query works fine and returns 0.

{{#ask: [[Has URL::http://www.wired.com/geekdad/2012/03/67-books-for-kids/?pid_1185&viewall_true]] | format=count }}

Live example is on scratchpad here:

http://scratchpad.referata.com/wiki/Datatype_URL_-_test

Also see related bug #35452.


Version: unspecified
Severity: normal

Details

Reference
bz36351

Event Timeline

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

Bug #35452 is actually not related to this. The problem is with the syntax for #ask, which uses "=" as a special symbol. There is already another bug for this.

  • This bug has been marked as a duplicate of bug 32955 ***