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

ezcsvimport uses the storage-dir as filename if an ezimage is empty

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2014.03, 5.3
    • 2012.8, 5.0, 5.1, 5.2, 2014.01
    • None
    • None
    • Red Hat Enterprise Linux Server release 5.9 (Tikanga)
      PHP 5.3.3 (cli) (built: Jun 25 2012 04:50:05)

    Description

      Let's say that you exported all articles in a myexport folder and that the Article class contains an ezimage datatype.

      Now you want to import all those articles thanks to this command line :

      php bin/php/ezcsvimport.php --class=article --creator=14 --storage-dir=myexport/images 2 myexport/article.csv

      If an article contains an image, there is no problem, the attribute will get, for instance, the file myexport/images/my-flowers.jpg. But if an article does not contain any image, it will set the attribute with myexport/images instead of nothing.

      Attachments

        Activity

          People

            Unassigned Unassigned
            charlycoste charlycoste
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 2 hours, 30 minutes
                2h 30m