Last modified: 2011-10-25 13:18:14 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 T31066, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29066 - Cannot use inputbox with some page title
Cannot use inputbox with some page title
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
InputBox (Other open bugs)
unspecified
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 15564 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-21 09:57 UTC by DavidL
Modified: 2011-10-25 13:18 UTC (History)
7 users (show)

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


Attachments

Description DavidL 2011-05-21 09:57:09 UTC
When creating an input box for a page title containing a ' character (' / %27) using the FULLPAGENAME special word, the page title is truncated to this character with an ampersand at the end.

Using FULLPAGENAMEE or urlencode:FULLPAGENAME instead of FULLPAGENAME doesn't help and mediawiki show en error message about bad page title.

See [http://fr.wikibooks.org/w/index.php?title=Mod%C3%A8le:Livre_d%27or&oldid=327714 template on french wikibooks]

I will not recommend using this extension until this major bug has been fixed.
It a major bug because the ' character is used in many languages.

It also need to be tested with other characters like  (. ! ? & _ ...), accented letters (é à ...).
Comment 1 DavidL 2011-05-21 10:20:11 UTC
Also using #tag:inputbox doesn't help.
Comment 2 db [inactive,noenotif] 2011-05-25 18:42:45 UTC
sounds like bug 16474, because FULLPAGENAME returns Modèle:Livre d'or and the # is interpreted as anchor and the title is truncated, see

http://fr.wikibooks.org/w/index.php?title=Mod%C3%A8le%3ALivre+d%26%2339%3Bor

With FULLPAGENAMEE or urlencode the ampersand in the title gets urlencode twice and that gives a bad title.
Comment 3 Brion Vibber 2011-05-27 17:26:36 UTC
It looks to me like inputbox needs to be more cleanly validating/interpreting its input.

Title::newFromText() will happily decode the ''' from the escaped input string into a single apostrophe, which can then be output cleanly into the form parameters where we need the more canonical version.
Comment 4 Dominic 2011-10-25 00:15:37 UTC
*** Bug 15564 has been marked as a duplicate of this bug. ***
Comment 5 Dominic 2011-10-25 00:19:31 UTC
Using {{#tag:nowiki}} around the the PAGENAME (but not PAGENAMEE) seems to be a workaround. See http://commons.wikimedia.org/w/index.php?title=Template:Transcribe&action=edit
Comment 6 DavidL 2011-10-25 10:41:05 UTC
I used the {{#tag:nowiki}} with FULLPAGENAME to include the namespace too: The workaround is OK.
Thanks for finding this workaround.
Comment 7 Bawolff (Brian Wolff) 2011-10-25 13:18:14 UTC
Fixed in r100694. (probably won't hit wikimedia wikis for a while yet though)

p.s. that's a cool idea for a work around.

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


Navigation
Links