Page MenuHomePhabricator

Thumbnail generation fails for images with special characters in the title
Closed, ResolvedPublic

Description

Author: dasch

Description:
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.


Version: 1.14.x
Severity: major
OS: Linux

Details

Reference
bz17678

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:32 PM
bzimport set Reference to bz17678.
bzimport added a subscriber: Unknown Object (MLST).

dasch wrote:

problem remains in 1.15 (r46927)

dasch wrote:

still there up to r47833

dasch wrote:

By the way, I'm using PHP 5.2.4-2ubuntu5.5 on Ubuntu 8.04. Can anybody please give my some solution fast.

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.

dasch wrote:

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

Right, that's what I'm talking about.

dasch wrote:

Now there is a "Invalid byte sequence in conversion input" Message

dasch wrote:

By the way I use the latest SVN Release

I can super fine create thumbs with e.g. [[File:Föö.jpg|thumb]] or [[Image:Föö.png|thumb|200px|right]]. MW 1.14.0

dasch wrote:

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?

dasch wrote:

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

dasch wrote:

Well by now i minimized the problem to the Error:"Invalid byte sequence in conversion input"

dasch wrote:

think the bug is ubuntu-specific and related to bug 16014

dasch wrote:

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

We have the same problem under Debian Lenny (under UTF-8), current update and Mediawiki 1.17, 1.18 alpha, 1.19 alpha.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:27 AM
Gilles added a project: Multimedia.
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:22 AM