Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20966

Cannot create images with chinese characters in DFS cluster mode with "TransformationGroup=urlalias_iri" setting.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Customer request
    • Component/s: None
    • Labels:
      None
    • Environment:

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 7 hours, 30 minutes
                1d 7h 30m