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

VideoConversionWork should handle unknown mime-type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF49, 11.x, 2021.6
    • Component/s: Core

      Description

      When the VideoConversionWork tries to process a blob with a mime type that it cannot handle an exception is thrown, the work is in failure and moved to the DLQ.

      Blobs with unknown mime-type are to be expected, a simple warning message is enough.

      Example of trace:

      Uncaught error on thread: Nuxeo-Work-videoConversion-31, current work might be lost, WorkManager metrics might be corrupted.
      
      org.nuxeo.ecm.core.api.NuxeoException: Work failed after 0 retries, class=class org.nuxeo.ecm.platform.video.service.VideoConversionWork id=default:1c597c89-ceed-4d40-b0b7-efd523f8485a:videoconv:MP4 1080p category=videoConversion title=Video Conversion: MP4 1080p
      	at org.nuxeo.ecm.core.work.AbstractWork.workFailed(AbstractWork.java:439) ~[nuxeo-core-event-10.10-HF34.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:395) ~[nuxeo-core-event-10.10-HF34.jar:?]
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-10.10-HF34.jar:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_272]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_272]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_272]
      Caused by: org.nuxeo.ecm.core.convert.api.ConversionException: application/x-troff-msvideo mime type not supported by convertToMP4 converter
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:323) ~[nuxeo-core-convert-10.10-HF34.jar:?]
      	at org.nuxeo.ecm.platform.video.service.VideoServiceImpl.convert(VideoServiceImpl.java:169) ~[nuxeo-platform-video-core-10.10-HF27.jar:?]
      	at org.nuxeo.ecm.platform.video.service.VideoConversionWork.work(VideoConversionWork.java:109) ~[nuxeo-platform-video-core-10.10-HF27.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: