Last modified: 2011-05-14 15:43: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 T29224, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27224 - Less than or equals on a date type matches everything when used in a Concept
Less than or equals on a date type matches everything when used in a Concept
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-07 16:08 UTC by John Morton
Modified: 2011-05-14 15:43 UTC (History)
2 users (show)

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


Attachments

Description John Morton 2011-02-07 16:08:51 UTC
I expected this:

{{#concept: [[News:+]] [[Category:CFFC News Item]] 
[[CFFC News Published Date::<{{LOCALYEAR}}/{{LOCALMONTH}}/{{LOCALDAY2}} {{LOCALTIME}}]]
| All published CFFC News items
}}

...to match all items younger than the current date, but it matches any published date. Using “<<” does the right thing. Using a similarly constructed #ask: query does the right thing. Odd.

Examples:

‘<’ concept:
http://chch.ultimate.org.nz/wiki/view/Concept:CFFC_News_Latest_Test

‘<<’ concept:
http://chch.ultimate.org.nz/wiki/view/Concept:CFFC_News_Latest

‘<’ #ask:
http://chch.ultimate.org.nz/wiki/view/User:Jwm/sandbox

Using SMW 1.5.5.1.
Comment 1 Jeroen De Dauw 2011-02-07 16:29:02 UTC
I must have introduced this in 1.5.2(?) when support for strict comparators was added. Will have a look at the issue and attempt to get it fixed for the next release. Thanks for reporting.
Comment 2 Markus Krötzsch 2011-02-10 15:23:27 UTC
I think this relates to string escaping in MediaWiki that is not handled properly by SMW (any more). Apparently, something changed, and symbols like < end up as &lt; which they did not do before. The concept query answering should be fixed ASAP, and I set the priority accordingly.

The problem is that a change in the escaping behaviour may affect older MW systems, if the issue really was introduced by a change in MW escaping order (and not just by SMW-internal changes). But if in doubt, recent versions of MW should be preferred over older ones.
Comment 3 Jeroen De Dauw 2011-02-11 15:12:56 UTC
I tried reproducing this issue using SMW trunk with both MW 1.16.0 and MW trunk, and failed doing it on either setup.
Comment 4 Markus Krötzsch 2011-02-11 17:52:50 UTC
I have just committed a change (r81979) that could fix this issue. When you update to SVN, please trigger the Special:SMWAdmin initialisation again (or run SMW_setup.php).

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


Navigation
Links