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

Updating an image through API fails when using DFS

    XMLWordPrintable

Details

    • Castor Core S2, Castor Core S3, Castor Core S4

    Description

      When using DFS cluster, after creating an image content updating it through the API will fail with an exception:

      [eZ\Publish\Core\Base\Exceptions\InvalidArgumentValue]
        Argument '$value->path' is invalid: ''var/ezdemo_site/storage/images/1040-1-eng-GB/image.jpg' is wrong value
      
      Steps to reproduce:
      Other Info:

      It seems Image FieldType incorrectly tries to validate the file using file_exists() in checkValueStructure()
      https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/Image/Type.php#L109
      The same may happen with other Binary Files
      https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/BinaryBase/Type.php#L101

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 hour Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 10 minutes
                2h 10m