Last modified: 2010-05-15 15:41:08 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 T12210, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10210 - broken media-links due to invisible characters in the copy&paste buffer
broken media-links due to invisible characters in the copy&paste buffer
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.7.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-10 17:35 UTC by Adalbert Dawid
Modified: 2010-05-15 15:41 UTC (History)
0 users

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


Attachments

Description Adalbert Dawid 2007-06-10 17:35:05 UTC
(see bug #10024 for further details)

Summary:

media-links are broken when you copy&paste the file name from a (certain) link to that file, probably due to the fact that there is an invisible character in the copy buffer. This character cannot be seen in the editig area, but, nonetheless, it is there and it is obviously being evaluated by the mediawiki software when creating a link from the [[media:filename|Download]] tag. 

Steps to reproduce:

1. Upload a file to mediawiki (say, "Test.pdf").
2. Navigate to the "file list" page (using the german version, so I'm not sure whether this is really called "file list" in the english mediawiki).
3. Click on the "description" link next to the "Test.pdf" link.
4. Now you are on the description page for Test.pdf. Mark the "Test.pdf" string from the link underneath the Acrobat logo and copy it (Ctrl+C).
5. Go to some arbitrary wiki-page, edit it and create the link [[media:Test.pdf|Download]]. Don't type the name of the file but paste it (Ctrl+V) right to the media: string.
6. Save the page and wonder why the link you just created is red and not blue (and is broken).
7. Return to the page editor, position your cursor between the "f" and the pipe "|" in the link and hit backspace. You will notice that the "f" is still there, because you just deleted some invisible character that was right beside the "f".
8. Save the page and be glad that the link now works!

This happened to me several times and it was really hard to solve, as there is no indication for the existance of that disturbing character. I suggest to ignore any invisible characters when parsing [[link]] strings.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-06-10 18:09:16 UTC
Does this only occur in 1.7, or also on Wikipedia or other sites running trunk?
Comment 2 Adalbert Dawid 2007-06-10 18:43:20 UTC
Unfourtunately I don't have enough spare time to install Mediawiki from trunk right now, so please could someone else (running trunk) try to reproduce the bug?
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-06-11 01:29:52 UTC
This was fixed some time ago, as I recalled, although I can't find the relevant bug.  A demonstration is at [[commons:User:Simetrical/10210]]: the invisible character is present but ignored.

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


Navigation
Links