Page MenuHomePhabricator

{{PAGENAME}} with apostrophies break queries if {{PAGENAME}} is included in property name
Closed, DeclinedPublic

Description

Author: tim

Description:
Complicated and likely fringe problem:

http://thethirdturn.com/w/index.php?title=John_O'Neal,_Jr.&oldid=144332 <- ugly output.

This normally works fine but it appears if the page name has an apostrophe in it, this templating system breaks.

What appears to be happening is that when {{PAGENAME}} is passed, it becomes the first parameter ({{{1}}}) here but it's not returning any values: http://thethirdturn.com/w/index.php?title=Template:SeasonResultForm&action=edit . Somewhere, the encoding is breaking with the {{PAGENAME}} magic word.

When I directly substitute a name in (the end-around on the John O'Neal, Jr. page), this works fine, properly returning values that correspond to say the property named John O'Neal, Jr. Name. It just doesn't like Property:{{PAGENAME}} Name when {{PAGENAME}} contains an apostrophe.


Version: unspecified
Severity: enhancement

Details

Reference
bz27289

Event Timeline

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

timq wrote:

Also seems to choke on periods in property names in a similar way.

Oddly not for an ampersand.

I know this is a relatively minor and fringe bug, but this seems like it would be a rather simple encoding issue somewhere. I would appreciate it receiving a look very soon.

timq wrote:

  • Correction to Comment #1 - "Choke on periods" ... Periods that are part of the {{PAGENAME}} variable. I do not believe this is an issue with normal properties with periods in them.

Same basic issue as bug 16474

Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.