Last modified: 2011-09-09 07:58:55 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 T19678, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17678 - Thumbnail generation fails for images with special characters in the title
Thumbnail generation fails for images with special characters in the title
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.14.x
All Linux
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-26 15:44 UTC by DaSch
Modified: 2011-09-09 07:58 UTC (History)
5 users (show)

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


Attachments

Description DaSch 2009-02-26 15:44:47 UTC
when there are special characters in the name of the picture they are cut out when trying to create thumbnails, so the creation of thumbnails fails.
Comment 1 DaSch 2009-02-26 17:10:05 UTC
problem remains in 1.15 (r46927)
Comment 2 DaSch 2009-02-26 17:37:16 UTC
still there up to r47833
Comment 3 DaSch 2009-02-26 20:30:29 UTC
By the way, I'm using PHP 5.2.4-2ubuntu5.5 on Ubuntu 8.04. Can anybody please give my some solution fast.
Comment 4 Brion Vibber 2009-02-26 21:15:57 UTC
Perhaps related to the bug 14944 issue?

If you have safe_mode on, the workaround for the PHP bug can't be used since we can't set the environment variable and update the locale settings.
Comment 5 DaSch 2009-02-26 21:21:41 UTC
well the generation of thumbnails in general works, but if there is any special character it is not passed through to the comand execution

look here http://www.wecowi.eu/view/WeCoWi:Spielwiese
Comment 6 Brion Vibber 2009-02-26 21:23:17 UTC
Right, that's what I'm talking about.
Comment 7 DaSch 2009-02-26 21:30:27 UTC
Now there is a "Invalid byte sequence in conversion input" Message
Comment 8 DaSch 2009-02-26 21:33:05 UTC
By the way I use the latest SVN Release
Comment 9 Subfader 2009-02-26 21:46:56 UTC
I can super fine create thumbs with e.g. [[File:Föö.jpg|thumb]] or [[Image:Föö.png|thumb|200px|right]]. MW 1.14.0
Comment 10 DaSch 2009-02-26 21:51:09 UTC
Look at my example bage http://www.wecowi.eu/view/WeCoWi:Spielwiese
Comment 11 DaSch 2009-02-27 00:33:41 UTC
Some ideas for apache configuration?

I added 

export LC_ALL=de_DE.UTF-8
export LANG=de_DE.UTF-8

to envvars 

and

AddDefaultCharset UTF-8

to apache.conf

and now the commands are passed correct to rsvg but no files are generated (look here http://www.wecowi.eu/view/Datei:K%C3%B6ln-Wappen.svg) so what's next, it seams to be better now, what could I do next? 
Comment 12 DaSch 2009-02-27 00:37:32 UTC
When trying to open one of the files there is something strang

http://www.wecowi.eu/images/thumb/a/a9/K%C3%B6ln-Wappen.svg/100px-K%C3%B6ln-Wappen.svg.png

The requested URL /images/thumb/a/a9/Köln-Wappen.svg/100px-Köln-Wappen.svg.png was not found on this server.

that does not match, that's somehow strange, but I've no idea where there are more options for charsets in apache or php 
Comment 13 DaSch 2009-02-27 00:54:13 UTC
Well by now i minimized the problem to the Error:"Invalid byte sequence in conversion input"
Comment 14 DaSch 2009-02-27 02:29:05 UTC
think the bug is ubuntu-specific and related to bug 16014
Comment 15 DaSch 2009-02-27 11:58:26 UTC
Reported the problem to ubuntu (https://bugs.launchpad.net/ubuntu/+source/librsvg/+bug/335251) and compiled my own rsvg, now it works, so I think this is fixed asa mediawiki bug, maybe there should be some information on mediawiki.org to this topic
Comment 16 Gregor Hagedorn 2011-09-09 07:58:55 UTC
We have the same problem under Debian Lenny (under UTF-8), current update and Mediawiki 1.17, 1.18 alpha, 1.19 alpha.

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


Navigation
Links