Page MenuHomePhabricator

#ask returns prop values with space substituted for _
Closed, InvalidPublic

Description

Author: halfcountplus

Description:
For example, if I have a property set:

[[propX::this_value]]

It comes back as "this value". If you then try to use that in a search:

[[propX::this value]]

it does not match. This is a problem if you do something like this:

{{#ask:[[propX::+]]|?propX}}

You get a list of all pages with the value for propX, some of which will be "that value". But if you want to narrow the list by doing this:

{{#ask:[[propX::that value]]|?propX}}

Will return nothing, since those pages actually had propX::that_value


Version: unspecified
Severity: enhancement

Details

Reference
bz24035

Event Timeline

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

Can you reproduce this behaviour on sandbox.semantic-mediawiki.org?

halfcountplus wrote:

Ah, no. I just realized the property is not set type String, but it's listed as part of a property page that is a String -- I'm using it to fetch the "allowed values" which is why I was thinking "but it's a string...". Whew.

So sorry about that -- this is not a bug! BTW I get a database error viewing:
http://sandbox.semantic-mediawiki.org/wiki/Special:Properties

Ok, closing this bug report then. (I also fixed the other problem on the sandbox, this was just an installation problem on that site.)