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

Do not run conversions on empty blobs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.10
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Convert

      Description

      This problem is mainly visible with WebDAV usage:
      When dropping a file to a WebDAV folder, the first PUT command creates a document with an empty blob. Then the document is updated with a POST command which attaches the real file.

      After the PUT command, various conversions are called, like text extraction for Office files, video conversions for videos, thumbnails, etc.

      It produces many exception and stacktraces in the logs like

      WARN  [ThumbnailDocumentFactory] Cannot compute document thumbnail
       {}org.nuxeo.ecm.core.convert.api.ConversionException: Thumbnail conversion failed
      	at org.nuxeo.ecm.platform.thumbnail.converter.ThumbnailDocumentConverter.convert(ThumbnailDocumentConverter.java:85)
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:314)
      	at org.nuxeo.ecm.platform.thumbnail.converter.AnyToThumbnailConverter.convert(AnyToThumbnailConverter.java:75)
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:314)
      	at org.nuxeo.ecm.platform.thumbnail.factories.ThumbnailDocumentFactory.computeThumbnail(ThumbnailDocumentFactory.java:87)
      	at org.nuxeo.ecm.core.api.thumbnail.ThumbnailServiceImpl.computeThumbnail(ThumbnailServiceImpl.java:92)
      	at org.nuxeo.ecm.core.api.thumbnail.ThumbnailAdapter.computeThumbnail(ThumbnailAdapter.java:56)
      	at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.processDoc(UpdateThumbnailListener.java:60)
      	at org.nuxeo.ecm.platform.thumbnail.listener.UpdateThumbnailListener.handleEvent(UpdateThumbnailListener.java:130)
      	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:173)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:396)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransactionAndCheckExceptions(AbstractWork.java:357)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:328)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:52)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 return by command: convert -define registry:temporary-path=#{java.io.tmpdir} -quiet -strip -thumbnail #{size} -background transparent -gravity center -format png -quality 75 #{inputFilePath}[0] #{outputFilePath}
      convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/501.
        convert: no images defined `/opt/support/main/2015/nuxeo-cap-7.10-tomcat-HF-PROD/tmp/nxblob-4320178157686599210.png' @ error/convert.c/ConvertImageCommand/3210.
      	at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.<init>(ExecResult.java:60)
      	at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:80)
      	at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:172)
      	at org.nuxeo.ecm.platform.thumbnail.converter.ThumbnailDocumentConverter.convert(ThumbnailDocumentConverter.java:78)
      	... 16 more
      

      or

      [FulltextExtractorWork] Could not extract fulltext of file '._20171012_APS_PLAN DES REVETEMENTS.pdf' for document: 1f496e26-9d57-4a05-a994-501955d803d5: org.nuxeo.ecm.core.convert.api.ConversionException: Error during text extraction with PDFBox
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: