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

Blob.ToPDF operation should not fail if the input is a PDF

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.0-HF12, 5.7.1
    • Component/s: Automation

      Description

      When trying to run Blob.ToPDF with a PDF as input, the following error is raised

      Caused by: org.nuxeo.ecm.core.convert.api.ConversionException: unable to find converter for target mime type
              at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convertToMimeType(ConversionServiceImpl.java:193)
              at org.nuxeo.ecm.automation.core.operations.blob.BlobToPDF.run(BlobToPDF.java:76)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:616)
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:125)
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:132)
              ... 124 more
      

      We should detect that the input is already a PDF and return it directly

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: