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

Fix nuxeo-importer-stream watermark mime type detection on Mac

    XMLWordPrintable

    Details

    • Tags:
    • Backlog priority:
      750
    • Story Points:
      2

      Description

      The watermark mime-type detection is based on java.nio.file.Files#probeContentType this method simply don't work on Mac.

      The unit test TestDocumentImportChronicle fails because of this:

      01:34:08,856 [Nuxeo-Consumer-01-0-text-000.txt] ERROR [AbstractCallablePool] Exception catch in runner: null
      java.lang.NullPointerException
          at org.nuxeo.importer.stream.consumer.BlobWatermarkMessageConsumer.getBlob(BlobWatermarkMessageConsumer.java:76)
          at org.nuxeo.importer.stream.consumer.BlobMessageConsumer.accept(BlobMessageConsumer.java:72)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bdelbosc Benoit Delbosc
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: