Last modified: 2010-05-15 15:41:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10024 - media:-links to a PDF file don't work
media:-links to a PDF file don't work
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.7.x
PC Linux
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-24 15:09 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
A file causing the bug in MediaWiki (112.51 KB, application/octet-stream)
2007-06-09 09:40 UTC, Adalbert Dawid
Details

Description Adalbert Dawid 2007-05-24 15:09:07 UTC
I'm using a MediaWiki on Debian Etch (in my intranet, only for private access). I added 'pdf' to $wgFileExtensions and keep uploading pdf files, which I link to from the wiki like that:

[[media:Name_of_the_file.pdf|Download]]

This works perfestly fine, but not for one file, which is called 3-dim_packing_bearing.pdf. Thus, the link

[[media:3-dim_packing_bearing.pdf‎|Download]]

doesn't work (i.e. stays red) although the file 3-dim_packing_bearing.pdf is uploaded and accessible through the list of uploaded files.

What can be the reason?

Tanks, Adalbert
Comment 1 Raimond Spekking 2007-05-24 16:12:04 UTC
I cannot confirm this bug using MediaWiki 1.11alpha (r22384). Maybe a bug in MW 1.7.1 and fixed until now?
Comment 2 Adalbert Dawid 2007-05-24 16:33:22 UTC
Now I renamed the file to Test.pdf and uploaded it to my wiki. Still the same problem... So I think the file itself and not its name must be causing the bug.
I'm afraid I cannot upload the file in question as it is under copyright. 
Comment 3 Adalbert Dawid 2007-06-09 09:40:01 UTC
Created attachment 3741 [details]
A file causing the bug in MediaWiki

Now I found a file that seems not to be copyrighted and that causes the bug described. When I upload that file and link to it via [[media:Heppner-Paper.pdf‎|Download]], the link always remains red, although the file has beed uploaded correctly.

I'm attaching the file in question so you can check if it works with a newer/older/the same version of MediaWiki.
Comment 4 Adalbert Dawid 2007-06-09 10:37:46 UTC
Marking this bug as INVALID.

I found out what the problem was. After uploading a file, I usually copied its name by marking a _link_ to that file and then pasted the name into the wiki in order to create a media:-link. What I didn't (and couldn't) see was that there was always some invisible character at the end of the file name (probably due to the fact that I had copied the name from a link) in the copy buffer which I then pasted to the media:-link along with the file name. Although one cannot see the invisible character, it seems to get interperted by mediawiki when it comes to creating a link and thus the link is broken.

I'd suggest not to interprete invisible characters when creating links in the wiki software in order to prevent other people from encountering this pretty tricky bug.
Comment 5 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-06-10 01:54:16 UTC
(In reply to comment #4)
> I'd suggest not to interprete invisible characters when creating links in the
> wiki software in order to prevent other people from encountering this pretty
> tricky bug.

I don't think we're supposed to be interpreting them.  Could you open a new bug for that?
Comment 6 Adalbert Dawid 2007-06-10 18:13:33 UTC
> Could you open a new bug for that?

done: bug #10210

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


Navigation
Links