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

Autosave creates duplicated objects while uploading files and videos

    XMLWordPrintable

Details

    Description

      With autosave enabled duplicates of files and videos are created every-time autosave is called

      On Single mode
      Steps to reproduce

      1. In Admin interface create a new folder "News"
      2. Inside "News" add a new Video object
        1. In name place Video 1
        2. Upload a video
        3. Click in name again (make sure autosave is called)
      3. If you check var/storage folder the file is present
      4. Publish video
      5. In your var/storage folder 2 files are now present
      6. Delete the Video 1 object
      7. On command line clear all caches
      8. In var/storage the duplicates are still present

      On a dfs cluster configuration the /var/storage and the ezdfsflie table area affected
      Steps to reproduce

      1. In Admin interface create a new folder "News"
      2. Inside "News" add a new Video object
        1. In name place Video 1
        2. Upload a video
        3. Click in name again (make sure autosave is called)
      3. If you verify ezdfsfile table an entry for the video is created
      4. If you check your shared dfs var/storage folder the file is present
      5. Publish video
      6. In ezdfsfile table verify that you get a new line for the video
      7. In your share dfs folder 2 files are now present
      8. Delete the Video 1 object
      9. On command line clear all caches and run the cluster maintenance cronjob
        1. php runcronjobs.php cluster_maintenance
      10. In ezdfsfile table and in var/storage the duplicates are still present

      Note: every-time you call autosave with the object already in the field (file or video) it will generate a duplicate

      Attachments

        Activity

          People

            Unassigned Unassigned
            Joao.Pingo-obsolete@ez.no Joao Pingo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 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 - 4 hours
                4h