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

SQL error after translating content with binaryfile

    XMLWordPrintable

Details

    Description

      Hello,

      After an update on ezplatform 1.4.0, an error has occured.

      Step to reproduce :
      1. Create a content in French with a field "binaryfile" and upload a PDF
      2. Translate the content in German an check "Base this translation on an existing translation" and chose the french version
      3. Publish the new German version
      4. Error message "An error occurred while publishing the draft"
      5. In Firebug we see this SQL error :

      "An exception occurred while executing 'INSERT INTO `ezbinaryfile` (`contentobject_attribute_id`, `filename`, `mime_type`, `original_filename`, `version`, `download_count`) VALUES (:placeholder1, :placeholder2, :placeholder3, :placeholder4, :placeholder5, :placeholder6)' with params ["8074", "982bd9828cb3c05733ea0043003fb1b1.pdf", null, "my_document.pdf", 7, 0]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'mime_type' cannot be null"

      Best Regards,
      Alexandre

      Attachments

        Activity

          People

            Unassigned Unassigned
            alex57 alex57
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: