Last modified: 2014-08-07 12:25:27 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 T71152, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69152 - Images: Unnecessary url encoding applied to "link" image option
Images: Unnecessary url encoding applied to "link" image option
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-05 20:10 UTC by spage
Modified: 2014-08-07 12:25 UTC (History)
2 users (show)

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


Attachments

Description spage 2014-08-05 20:10:11 UTC
Log in to a wiki, visit a Flow board and create a post containing the wikitext
  [[File:Şirince_(doyler79).jpg|thumb]]

when you edit the wiki text, note it has become
  [[File:Şirince_(doyler79).jpg|thumb|link=File:%C5%9Eirince_(doyler79).jpg]]

It only happens if the file name has an accented character. This sounds like an edge case of bug 49844, which was fixed.  If I run the wikitext on line 2 through the round-trip parser http://parsoid.wmflabs.org/_rtform/ , the link parameter doesn't appear.  It's in the HTML generated by http://parsoid.wmflabs.org/_wikitext/ , as a data-parsoid parameter:
   <figure ... data-parsoid='{"optList":[{... ,{"ck":"link","ak":"link=File:%C5%9Eirince_(doyler79).jpg"}], ...] }

I don't think that percent encoding is needed, the link should only be URL-encoded when put in a URL. For what it's worth the wikitext from Parsoid doesn't work if you copy it to a regular page, "link=File:%C5%9Eirince_(doyler79).jpg" appears as the caption.

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


Navigation
Links