Details
-
Bug
-
Resolution: Fixed
-
High
-
1.4.0, 1.7.2, 1.8.1, 1.9.0-beta1
-
None
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
Issue Links
- relates to
-
EZP-25039 Updating a BinaryFile with a mismatching mimeType messes up the saved file
- Closed
- links to