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

Publish/Save Error SQL after translation content with binaryfile

    XMLWordPrintable

Details

    Description

      Hello,

      Step to reproduce :

      1. Add content type "Article" a field "binaryfile", the binaryfile is required, no Searchable and no Translatable.

      2. Create a article in English, upload a file.
      3. "Create a new translation" in French, Base this translation on an existing translation English
      4. Publish the french.

      5. Edit the english version,  delete binaryfile and upload a new file. 
      6. Publish or Save => Error 500

      "An exception occurred while executing 'UPDATE `ezbinaryfile` SET contentobject_attribute_id = ?, filename = ?, mime_type = ?, original_filename = ?, version = ? WHERE (`contentobject_attribute_id` = ?) AND (`version` = ?)' with params [602, false, null, "carte-belgique (1).svg", 3, 602, 3]:

      SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'mime_type' cannot be null

      "

      Best Regards,
      Yoann

      Attachments

        Activity

          People

            Unassigned Unassigned
            77ad85b7-15b1-4fce-bc43-0cb2fea5c5a8@accounts.ibexa.co Yoann Reversat
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: