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

dfscleanup.php -B -D not clearing DB-unregistered files on dfs share

    Details

      Description

      On clusterized environment, I create a file that doesn't belong in a specific DFS share path, such as Image-1_test.jpg at:

      /mnt/ezdfs/var/ezdemo_site/storage/images/news/image1/234-1-eng-GB/
      

      (which means this file was not created by creating a content via ezpublish, and therefore it is not registered in the database).
      If I run the command:

      sudo -u www-data php bin/php/dfscleanup.php -B -D
      

      which is supposed to expunge these files, they are not removed.

        Issue Links

          Activity

          Hide
          Bertrand Dunogier added a comment -

          Could you check if it affects other versions, Rui ? I'd be surprised if 5.3 was not affected as well.

          Show
          Bertrand Dunogier added a comment - Could you check if it affects other versions, Rui ? I'd be surprised if 5.3 was not affected as well.
          Hide
          Bertrand Dunogier added a comment -

          Merged to master@61cee825.

          Show
          Bertrand Dunogier added a comment - Merged to master@61cee825 .
          Hide
          Rui Silva (Inactive) added a comment -

          Bertrand Dunogier, I tested on 5.3 too. Issue doesn't happen.
          php bin/php/dfscleanup.php -B -D correctly removes non-db-registered files as expected.

          Show
          Rui Silva (Inactive) added a comment - Bertrand Dunogier , I tested on 5.3 too. Issue doesn't happen. php bin/php/dfscleanup.php -B -D correctly removes non-db-registered files as expected.
          Hide
          Bertrand Dunogier added a comment -

          Okay, good. It makes sense, as this commit happened too late to be in 5.3. But at least we're sure. All good then ?

          Show
          Bertrand Dunogier added a comment - Okay, good. It makes sense, as this commit happened too late to be in 5.3. But at least we're sure. All good then ?
          Hide
          Rui Silva (Inactive) added a comment -

          Approved by QA.

          Show
          Rui Silva (Inactive) added a comment - Approved by QA.

            People

            • Assignee:
              Unassigned
              Reporter:
              Rui Silva (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: