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

import broken image using PAPI leavs inconsistent data in the db

    XMLWordPrintable

Details

    Description

      if a corrupt image is uploaded using the Image fieldtype, the file is stored and corrupt data is set on the db.

      1. save a random text string as myfile.png
      2. use PAPIto import it as an ezimage field of an image content, for example with this:
      https://github.com/ezsystems/CookbookBundle/blob/master/Command/CreateImageCommand.php

      3. image object is created, junk file has been copied into var/storage and db has a row with corrupt data.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.bras-obsolete@ez.no Paulo Bras (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 - 1 day, 15 minutes
                1d 15m