Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Customer request
    • Component/s: Legacy stack
    • Labels:
      None

      Description

      (with DFS configured) During the cache purge, called by example via php bin/php/ezcache.php --clear-all --purge command, the _purgeByLike method is called (https://github.com/ezsystems/ezpublish-legacy-ee/blob/5.4/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqli.php#L337). This method deletes file metadata in the transaction, however, it also deletes the physical file regardless of the transaction result: https://github.com/ezsystems/ezpublish-legacy-ee/blob/5.4/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqli.php#L393. If the transaction fails, this causes the content view cache to NOT be regenerated correctly (because the metadata for the cache file still exists) and instead the blank page is displayed.

        Activity

        Gunnstein Lye created issue -
        Gunnstein Lye made changes -
        Field Original Value New Value
        Fix Version/s Customer request [ 11018 ]
        Gunnstein Lye made changes -
        Component/s Legacy stack [ 13341 ]
        Gunnstein Lye made changes -
        Description (with DFS configured) During the cache purge, called by example via {{php bin/php/ezcache.php --clear-all --purge}} command, the {{_purgeByLike}} method is called (https://github.com/ezsystems/ezpublish-legacy-ee/blob/5.4/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqli.php#L337). This method deletes file metadata in the transaction, however, it also deletes the physical file regardless of the transaction result: https://github.com/ezsystems/ezpublish-legacy-ee/blob/5.4/kernel/private/classes/clusterfilehandlers/dfsbackends/mysqli.php#L393. If the transaction fails, this causes the content view cache to NOT be regenerated correctly (because the metadata for the cache file still exists) and instead the blank page is displayed.
        Gunnstein Lye made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
        Gunnstein Lye made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 4 hours [ 14400 ]
        Worklog Id 68824 [ 68824 ]
        Gunnstein Lye made changes -
        Time Spent 4 hours [ 14400 ] 1 day, 1 hour [ 32400 ]
        Worklog Id 68831 [ 68831 ]
        Gunnstein Lye made changes -
        Time Spent 1 day, 1 hour [ 32400 ] 1 day, 3 hours [ 39600 ]
        Worklog Id 68833 [ 68833 ]
        Gunnstein Lye made changes -
        Status Development [ 3 ] Development Review [ 10006 ]
        Gunnstein Lye made changes -
        Time Spent 1 day, 3 hours [ 39600 ] 1 day, 3 hours, 30 minutes [ 41400 ]
        Worklog Id 68842 [ 68842 ]
        Gunnstein Lye made changes -
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
        Status Development Review [ 10006 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Gunnstein Lye
          • Votes:
            1 Vote for this issue
            Watchers:
            2 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, 3 hours, 30 minutes
              1d 3h 30m