Details
-
Bug
-
Resolution: Fixed
-
High
-
None
-
None
-
None
-
eZ Publish 4.7 set in DFS cluster mode
Description
In a eZ Publish 4.7 installation set in DFS cluster mode with the "TransformationGroup=urlalias_iri" setting, when trying to upload an image containing Chinese characters, the image cannot be displayed. This happens when the image name is in "<chinese_chars>.jpg" or in "<chinese_chars>-001.jpg" format, and results in a "Data error." message everytime the folder where the image was created is accessed. Error log registers the following:
[ Jun 03 2013 21:55:24 ] [127.0.0.1] : Failed copying DFS://var/ezflow_site/storage/images/media/images/tests/双镜头半球摄像机.jpg/345-1-eng-GB/双镜头半球摄像机.jpg.jpg to FS://var/ezflow_site/storage/images/media/images/tests/双镜头半球摄像机.jpg/345-1-eng-GB/双镜头半球摄像机.jpg14408tmp.jpg [ Jun 03 2013 21:55:24 ] [127.0.0.1] eZImageManager::createImageAlias: Failed converting var/ezflow_site/storage/images/media/images/tests/双镜头半球摄像机.jpg/345-1-eng-GB/双镜头半球摄像机.jpg.jpg to alias 'reference' in directory 'var/ezflow_site/storage/images/media/images/tests/双镜头半球摄像机.jpg/345-1-eng-GB' [ Jun 03 2013 21:55:24 ] [127.0.0.1] eZImageManager::createImageAlias: Failed creating the referenced alias reference, cannot create alias small
Notes:
- Issue does not occur when using "001-<chinese_chars>.jpg" format;
- Image language is not relevant for this. Images can be created in English or any other languages and the problem is still reproducible;
- Not related to the image's corrupted EXIF metadata;
- Not related with using non UTF-8 DB character set (e.g. latin1), as once thought.
Steps to reproduce:
In an eZ Publish 4.7 clean, fully patched installation:
1. Set installation in DFS cluster mode;
2. Add the following setting to site.ini.append.php:
[URLTranslator] TransformationGroup=urlalias_iri
3. Go to "Media library" tab and add an image either in "<chinese_chars>.jpg" or in "<chinese_chars>-001.jpg" format.