Last modified: 2013-04-10 14:11:00 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 T49073, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47073 - Ask not equal with space
Ask not equal with space
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
REL1_20-branch
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-10 11:52 UTC by Dima
Modified: 2013-04-10 14:11 UTC (History)
4 users (show)

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


Attachments

Description Dima 2013-04-10 11:52:08 UTC
Description:

Ask: [[Qoute/Properties::+]] [[Author::!Boris Pasternak]]

is not working properly, because spaces is replaced by an underscore


Resolving:


\includes\storage\SQLStore\SMW_SQLStore3_Queries.php

542:	$value = $description->getDataItem()->getSortKey();

=>

542:	$value = str_replace("_", " ", $description->getDataItem()->getSortKey());


\includes\storage\compatSQLStore\SMW_SQLStore2_Queries.php

507:	$value = $description->getDataItem()->getSortKey();

=>

507:	$value = str_replace("_", " ", $description->getDataItem()->getSortKey());
Comment 1 Jeroen De Dauw 2013-04-10 12:00:51 UTC
The space should not be replaced by an underscore IMO; not sure where this is happening now, or why. On first glance, this does not seem to be the correct place to fix it.
Comment 2 Dima 2013-04-10 12:07:24 UTC
>> The space should not be replaced by an underscore

In my opinion, it makes sense, because the type of properties - Page.
Comment 3 Jeroen De Dauw 2013-04-10 12:10:11 UTC
Thinking about it more, this is certainly not the correct place. The DataItem should return the correct form of the sort key.

Furthermore the proposed fix is wrong, as it will also replace underscores in strings and whatnot, where this leads to an alternate value.
Comment 4 Gerrit Notification Bot 2013-04-10 14:02:51 UTC
Related URL: https://gerrit.wikimedia.org/r/58513 (Gerrit Change I972d99c2586026d33e9c4df2b56e5467c8728694)
Comment 5 Gerrit Notification Bot 2013-04-10 14:02:54 UTC
Related URL: https://gerrit.wikimedia.org/r/58513 (Gerrit Change I972d99c2586026d33e9c4df2b56e5467c8728694)
Comment 6 MWJames 2013-04-10 14:11:00 UTC
The above change is only a test case to verify expected results in the AskParserFunction class (it doesn't prove/disapprove of the issue, only ensures a query string with spaces is tested).

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


Navigation
Links