Last modified: 2009-12-30 19:48:12 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 T23337, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21337 - In-line query fails for page names/properties with '&'
In-line query fails for page names/properties with '&'
Status: ASSIGNED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
PC Linux
: Normal normal (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-29 02:26 UTC by Joe Costello
Modified: 2009-12-30 19:48 UTC (History)
0 users

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


Attachments

Description Joe Costello 2009-10-29 02:26:14 UTC
On my wiki I have pages 'related' to each other so that they appear automatically in an 'Other Pages' section.  The in-line query is quite simple and it works for all my pages with one exception. The page name has a '&' character in it and the in-line query fails to find the pages marked with the right smw property.  

To test I moved the page with the in-line query to remove the '&' and changing the property on a target page and it appeared. In another test, I changed the property on the target page, it also has a '&' in the title, to relate it to another page without the '&' character in the title and it worked as expected.      

The details:

In-line query:
{{#ask:[[Relatedpage::{{PAGENAME}}]] [[:+]]
|format=ul
|default=::''No related pages at this time''
}}

I'm running:
MW 1.15
SMW 1.4.3
MySQL 5.0.77 (although Special:Version reports 5.0.45)
PHP 5.2.5
CentOS Linux 5.4
Comment 1 Markus Krötzsch 2009-11-03 09:05:04 UTC
I tried to reproduce the error but couldn't. I created a page with a & in its name, another page that relates to the "&" page with some property, and I then put the query that you give above on that page: the results were as expected.

Could you try to recreate the error on http://sandbox.semantic-mediawiki.org?
Comment 2 Joe Costello 2009-11-05 15:12:32 UTC
I couldn't reproduce it in the sandbox. I'm sure it used to work on my site as well but I think it stopped working after an upgrade of MySQL to version 5.0.77 from 5.0.45. I've rebuilt the semantic data using the admin function and even gone so far as to blow away the semantic tables in the database and rebuild it all from scratch. Nothing clears it up. 

When I couldn't reproduce it I went back and tried it on my site again. I confirmed that changing just the '&' symbol in the target page name and in the property results to a positive query result but as soon as I put them back in it fails.
Comment 3 Markus Krötzsch 2009-12-30 08:36:30 UTC
This bug might be related to Bug 21926, and the workaround described there might work for you as well. I suspect some change in MediaWiki's escaping behaviour to be the reason for this problem.
Comment 4 Joe Costello 2009-12-30 19:48:12 UTC
Sounds similar but I tried the workaround in Bug 21926 but it didn't work. 

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


Navigation
Links