Last modified: 2012-01-27 17:02:53 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 T35854, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33854 - SMW 1.7.0.1: Regular Expression Query using Page Type Field fails
SMW 1.7.0.1: Regular Expression Query using Page Type Field fails
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.referata.com/wiki/Comparat...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-21 02:38 UTC by Sal Quintanilla
Modified: 2012-01-27 17:02 UTC (History)
3 users (show)

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


Attachments

Description Sal Quintanilla 2012-01-21 02:38:23 UTC
(MW 1.18.1) Considering these 4 queries:

{{#ask: [[Category:Plays]] [[Was written by::William Shakespeare]] |?Was written by=}}
----
{{#ask: [[Category:Plays]] [[Was written by::~W*]] |?Was written by=}}
----
{{#ask: [[Category:Plays]] [[Was written by::~*William Shakespeare*]] |?Was written by=}}
----
{{#ask: [[Category:Plays]] [[Was written by::~*William?Shakespeare*]] |?Was written by=}}

where "Was written by" is a property of type page, the 3rd query will fail.  The fourth works, as does this:

{{#ask: [[Category:Plays]] [[Was written by::~*{{#replace:William Shakespeare| |?}}*]] |?Was written by=}}

This worked in my previous install that used MW 1.16.1 / SMW version 1.5.2.  All of them work as expected if the type is String.  

Example on Referata:  http://www.referata.com/wiki/Comparator_Test
Comment 1 Sal Quintanilla 2012-01-27 17:02:53 UTC
Dennis on Referata pulled the page deciding it and some other pages were senseless templates.  On that note, it may be appropriate for another referata-like site just for hosting repeatable issues like the one above.

In any case, I left out the versions from my earlier post in lieu of referata's settings.  Here they are:

MW 1.18.1
PHP 5.3.2
MySQL 5.1.41
SMW 1.7.0.1

... and here is a capture of referata's current settings:

MW 1.18.1
PHP 5.3.6
MySQL 5.0.92
SMW 1.7.1 alpha3

Regards,
Sal

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


Navigation
Links