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

Image creation fails due to double double quotes

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • 4.4.0beta2
    • 4.2.0, 4.3.0
    • None
    • Operating System: Windows 7 (xampp)
      PHP Version: 5.3.1
      Database and version: 5.0.51a
      Browser (and version): Firefox 3.6.3

    Description

      When trying to access any image size other than "original" I get errors like the following:

      Warning:  eZImageShellHandler::convert  	Apr 08 2010 12:34:04
      
      Failed executing: ""convert.exe" "-geometry" "194x260>" "var/altholstein/storage/images/kita/kitas-in-altholstein/kita-2/164080-12-ger-DE/Kita-2.png" "PNG:var/altholstein/storage/images/kita/kitas-in-altholstein/kita-2/164080-12-ger-DE/Kita-2_medium.png"", Error code: 1
      
      Error: eZImageManager::createImageAlias 	Apr 08 2010 12:34:04
      
      Failed converting var/altholstein/storage/images/kita/kitas-in-altholstein/kita-2/164080-12-ger-DE/Kita-2.png to alias 'medium' in directory 'var/altholstein/storage/images/kita/kitas-in-altholstein/kita-2/164080-12-ger-DE'
      
      

      I looked into the sourcecode (ezimageshellhandler.php) and found the block

      Line 75:

              if ( eZSys::osType() == 'win32' )
                  $executable = "\"$executable\"";
      

      and a second one in Line 122:

              if ( eZSys::osType() == 'win32' )
                  $systemString = "\"$systemString\"";
      

      The system call line then looks like this:

      ""convert.exe" "-geometry" "194x260>" "var/altholstein/storage/images/kita/kitas-in-altholstein/kita-2/164080-12-ger-DE/Kita-2.png" "PNG:var/altholstein/storage/images/kita/kitas-in-altholstein/kita-2/164080-12-ger-DE/Kita-2_medium.png""
      

      It contains double double quotes and failes to execute. By commenting out the second double quote code I could solve the prolbem:

             #     $systemString = "\"$systemString\"";
      

      I'm on Windows 7, so it might be 7 specific, but even if that worked before, I think double quotes around every parameter and the executable name should be enough, shouldn't it?

      Steps to reproduce

      Put something like this in a template:

      {attribute_view_gui attribute=$image image_class='medium'}

      Attachments

        Activity

          People

            andre1 andre1
            nimran nimran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: