Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27273

file mime-type is not set when using the import mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 11.1, 2021.0
    • Component/s: CSV Importer

      Description

      When enabling "Apply Date, Author and Dublin Core properties.", the files attached to "file:content" don't have a mime-type after import, resulting in failed thumbnail generation

      If the import mode is not activated, then the mime-type is set correctly by the platform.

      In the code it looks like file:content is treated differently than other blob properties and cannot accept an object including the mime-type like described at https://doc.nuxeo.com/nxdoc/nuxeo-csv/#files-attachment. Thus there is no workaround.

      https://github.com/nuxeo/nuxeo/blob/34467b1be29c8b5af71fdcb518214aa592d36ae2/addons/nuxeo-csv/nuxeo-csv-core/src/main/java/org/nuxeo/ecm/csv/core/CSVImporterWork.java#L459

        Attachments

          Activity

            People

            • 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 - 1 day
                1d