Page MenuHomePhabricator

Special:ask drops unnamed properties
Closed, ResolvedPublic

Description

Author: kevinaj

Description:
When performing a query through Special:ask or when attempting to obtain further results from an inline query, Special:ask will forget about any "?# -" specified in the query. This is the suggested means of obtaining the title of the resulting page without having it linked.

This occurs even in the sandbox at semantic-mediawiki.org.

To recreate this issue:

  1. In the sandbox query all pages with [[Category:Person]] and return "?name" and "#? -"
  1. Notice there are three columns returned: the link to the page, the person's name, and the name of the page with no link.
  1. Click Next for results 21-40
  1. Notice there are only two columns returned: the link to the page, and the person's name

Somewhere along the line, the "?# -" was eaten... This is especially vital to templates that make use of the "?# -" property in a variable because it may shift the variable used by all the other properties (If its not the last property queried for).


Version: unspecified
Severity: normal

Details

Reference
bz24945

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:07 PM
bzimport set Reference to bz24945.

Indeed, these statements simply did not get serialised when creating the link to further results. Fixed now in SVN (and soon in SMW 1.5.2).

kevinaj wrote:

I just updated to revision 72059. The issue is still present, but not quite as bad. :-)

"?#" is interpreted correctly the first time (as it was before), but after that it is replaced with just "?". Thus clicking "Find Results" a second time without making changes or clicking "Next" still does not work properly.

The good news is that the question mark isn't stripped completely.

Unknown Object (User) added a comment.Nov 7 2012, 7:50 AM

It is unknown if this bug still relates the current SMW 1.8 therefore it is set to being fixed.

Please feel free to reopen this bug again if it applies to SMW 1.8.