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

eZExpiryHandler uses wrong cache directory

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.0.1
    • Legacy > WebDAV
    • None
    • Operating System: Debian
      PHP Version: PHP 5.2.6-0.dotdeb.1
      Database and version: MySQL 5.0.51a-7
      Browser (and version): any

    Description

      When accessing eZ Publish over webdav, the eZExpiryHandler is initialized before the siteaccess is changed. This causes the eZExpiryHandler to write its expiry.php in the wrong directory if a custom VarDir or CacheDir is set in your siteaccess, an therefore the Website won't notice that for example the template-block-cache has expired.

      I've attached a patch that modifies the changeAccess function so it reloads the eZExpiryHandler if one is already set an not modified.

      Steps to reproduce

      1) Set a custom VarDir or CacheDir in your siteaccess
      2) Upload a file over webdav that normaly would cause the template-block-cache to expire
      3) Watch eZ Publish update the wrong expiry.php (the one in the default VarDir/CacheDir path)

      Attachments

        Activity

          People

            unknown unknown
            eeggenberger eeggenberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: