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

Handle blobs in lists and complex types within the CSV Importer

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.10
    • Fix Version/s: 8.10-HF12, 9.3
    • Component/s: CSV Importer
    • Release Notes Description:
      Hide

      By using a JSON format like

      "[{\"file\":{\"name\":\"Meeting.pdf\",\"mime-type\":\"application/pdf\",\"content\":\"dummyContentForMyBlob\"}}]
      

      , we can now import files in the attachment part of the File document (or any of your customized document type), while only the main file:content property could be filld using Nuxeo CSV impoter before.

      Show
      By using a JSON format like "[{\" file\ ":{\" name\ ":\" Meeting.pdf\ ",\" mime-type\ ":\" application/pdf\ ",\" content\ ":\" dummyContentForMyBlob\"}}] , we can now import files in the attachment part of the File document (or any of your customized document type), while only the main file:content property could be filld using Nuxeo CSV impoter before.
    • Backlog priority:
      800
    • Sprint:
      nxfit 9.3.2
    • Story Points:
      5

      Description

      Currently, only straight content metadata, like file:content, can be mapped to blobs thanks to this code from CSVImporterWork#convertValue

      It should be extended to content metadata inside list or complex types, like files:files

      By using a JSON format like

      "[{\"file\":{\"name\":\"Meeting.pdf\",\"mime-type\":\"application/pdf\",\"content\":\"dummyContentForMyBlob\"}}]
      

      , it is possible to return a StringBlob to CSVImporterWork#convertValue, which could transform it to a File object usable by the CSV Importer.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 6 hours
                2d 6h