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

Clearing caches fail if cache folder is symlinked

    XMLWordPrintable

Details

    Description

      if any of the cache folders under ezp_root/var/ is symlinked to a dir outside the ezp_root, no cache will ever be cleaned. the ezDir::recursiveDelete() checks that the absolute path is outside the root and fails.

      test case:

      • mv ezpublish_legacy/var/cache /some/path/elsewhere
      • ln -s /some/path/elsewhere ezpublish_legacy/var/cache
      • clear caches from admin or command line
      • inspect the symlinked folder, all files all still there

      there are no errors in log, but hacking the recursiveDelete() to write a message with the result shows clearly that the return value is False.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.bras-obsolete@ez.no Paulo Bras (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 - 3 hours
                3h