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

eZDFS Oracle: Image files aren't removed when a objectversion is deleted

    XMLWordPrintable

    Details

      Description

      When a new version of an object is created the images of version one are in storage, but if version one was deleted the images are not removed from storage.

      Steps to reproduce
      Summary
      This testcase is to test that the image files and aliases are removed when a objectversion is deleted
      
      --filter="eZFlowSeleneseTests.*empty.html"
      
      Steps
      
      1. Enter ezflow admin access as admin
      2. Click in Content Structure in top menu
      3. Create a new folder:
      Name:“Test”
      Open Folder “Test”
      
      4. Create a new Image object named “Image 1”
      Name: Image 1
       Caption: This is a test image
      Image: <upload a local file>
      
      5. Click “Send for publish”
      6. Verify created files
      
      Open a command line shell
      
      1. Enter the shared folder
      $cd  /mnt/ezdfs/  
      
      2. Enter the image storage folder
      $cd  /var/ezflow_site/storage/images/test/image-1/<615-1-eng-GB>
      
      3. Verify that the image files are present
      $ls -al
      
      Create a new version of the image object
      
      1. Enter ezflow admin access as admin
      2. Enter the “Test” folder
      3. Edit Image 1
      4. Remove the existing image file, and upload a new local file
      5. Click “Send for publish”
      6. Verify created files
      
      Open a command line shell
      
      1. Enter the shared folder
      $cd  /mnt/ezdfs/  
      
      2. Enter the image storage folder
      $cd  /var/ezflow_site/storage/images/test/image-1
      
      3. Verify that there are 2 folders created: 615-1-eng-GB and 615-2-eng-GB
      $ls -al
      
      Remove a version of the image object
      
      1. Enter ezflow admin access as admin
      2. Enter the “Test” folder
      3. Open Image 1
      4. Click in Manage versions button
      5. Select version 1, and click in Remove selected button
      
      Verify Removed files
      
      1. Open a command line shell
      2. Enter the site folder
      $cd /var/www/ezp430snapshot/.run
      
      3. Run the maintenance cronjob
      $php runcronjobs.php cluster_maintenance -s ezwebin_site
      
      4. Enter the shared folder
      $cd  /mnt/ezdfs/
      $cd  /var/ezflow_site/storage/images/test/image
      
      5. Verify that the files on  615-1-eng-GB folder are no longer present
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                unknown unknown
                Reporter:
                pedro.resende Pedro Resende
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: