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

Warnings that files cannot be written, due to wrong CWD

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 2013.06
    • Fix Version/s: None
    • Labels:

      Description

      When using the REST API from legacy stack. Somehow the CWD is changed to / and cache files (like var/cache/expiry.php) cannot be created anymore (it might be that it is a regression from chdir fix https://github.com/ezsystems/ezpublish-legacy/pull/630/files)

      When calling http://localhost/api/ezp/v1/content/node/2 I get following warning. I'm using the legacy stack without symfony.

      The framework wants to create var/cache/expiry.php with atomic parameter set to true, so that first a temp file is written.

      Warning: fopen(var/cache/ezfile-tmp.0b1cd1baf74c3d8e107e7239fe3c7b3d): failed to open stream: Permission denied in /data/www/psd-verticals-ezpublish/htdocs/lib/ezfile/classes/ezfile.php on line 64
       
      Call Stack:
      361.4760 3790080 1. eZExpiryHandler::shutdown() /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:0
      361.9700 3815408 2. eZExpiryHandler->store() /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:163
      361.9700 3815720 3. eZFSFileHandler->storeContents(???, ???, ???, ???) /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:66
      361.9701 3815936 4. eZFile::create(???, ???, ???, ???) /data/www/psd-verticals-ezpublish/htdocs/kernel/classes/clusterfilehandlers/ezfsfilehandler.php:212
      361.9701 3816360 5. fopen(???, ???) /data/www/psd-verticals-ezpublish/htdocs/lib/ezfile/classes/ezfile.php:64
       
       
      Warning: chmod(): No such file or directory in /data/www/psd-verticals-ezpublish/htdocs/kernel/classes/clusterfilehandlers/ezfsfilehandler.php on line 214
       
      Call Stack:
      361.4760 3790080 1. eZExpiryHandler::shutdown() /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:0
      361.9700 3815408 2. eZExpiryHandler->store() /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:163
      361.9700 3815720 3. eZFSFileHandler->storeContents(???, ???, ???, ???) /data/www/psd-verticals-ezpublish/htdocs/lib/ezutils/classes/ezexpiryhandler.php:66
      361.9704 3815816 4. chmod(???, ???) /data/www/psd-verticals-ezpublish/htdocs/kernel/classes/clusterfilehandlers/ezfsfilehandler.php:214
      

      Regards,
      Martin

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Martin Eckhardt
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: