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

Fix Windows tests with "The 'any2pdf' converter is not available" error

    Details

    • Tags:
    • Sprint:
      nxfit 8.4.6

      Description

      This converter tests are falling with this error :

      org.nuxeo.ecm.restapi.test.ConverterTest.shouldConvertBlobUsingMimeType
      org.nuxeo.ecm.restapi.test.ConverterTest.shouldConvertBlobUsingFormat
      org.nuxeo.ecm.restapi.test.ConverterTest.shouldConvertDocument
      org.nuxeo.ecm.restapi.test.ConverterTest.shouldScheduleAsynchronousConversionUsingNamedConverter
      org.nuxeo.ecm.restapi.test.ConverterTest.shouldScheduleAsynchronousConversionUsingMimeType
      org.nuxeo.ecm.restapi.test.ConverterTest.shouldScheduleAsynchronousConversionUsingFormat
      org.nuxeo.ecm.restapi.test.ConverterTest.shouldAllowSynchronousConversionUsingPOST

      org.nuxeo.ecm.platform.rendition.service.TestRenditionOperation.shouldGetPDFRendition
      org.nuxeo.ecm.platform.rendition.service.TestRenditionService.doPDFRendition
      org.nuxeo.ecm.platform.rendition.service.TestRenditionService.doRenditionVersioning
      org.nuxeo.ecm.platform.rendition.service.TestRenditionService.testRenderAProxyDocument
      org.nuxeo.ecm.platform.rendition.service.TestRenditionService.shouldNotCreateANewVersionForACheckedInDocument
      org.nuxeo.ecm.platform.rendition.service.TestRenditionService.shouldRemoveFilesBlobsOnARendition

      org.nuxeo.ecm.platform.convert.tests.TestOOoServiceManagerService.testServiceRegistration
      org.nuxeo.ecm.platform.convert.tests.TestOOoServiceManagerService.testSocketConnection
      org.nuxeo.ecm.platform.convert.tests.TestOOoServiceManagerService.testPipeConnection

      org.nuxeo.ecm.platform.signature.core.operations.SignPDFDocumentTest.testSignPDFDocument
      org.nuxeo.ecm.platform.signature.core.sign.SignatureServiceTest.testSignDocumentReplace
      org.nuxeo.ecm.platform.signature.core.sign.SignatureServiceTest.testSignDocumentAttach
      org.nuxeo.ecm.platform.signature.core.sign.SignatureServiceTest.testSignDocumentArchive

      org.nuxeo.template.samples.tests.TestImportedModelRendering.testSampleNote
      org.nuxeo.template.samples.tests.TestImportedModelRendering.testInterventionStatement

      org.nuxeo.ecm.platform.rendition.publisher.TestRenditionPublication.shouldPublishAPDFRendition
      org.nuxeo.ecm.platform.rendition.publisher.TestRenditionPublicationWFAprove.testApproveRenditionPublishing
      org.nuxeo.ecm.platform.rendition.publisher.TestRenditionPublicationWFReject.testRejectRenditionPublication

      org.nuxeo.ecm.core.opencmis.impl.TestCmisBindingRenditions.testRenditions

        Activity

        Hide
        Frantz Fischer added a comment -

        When starting up the server:

        2016-12-21 15:02:34,446 WARN  [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Command not available: pdftotext (command pdftotext not found in system path (descriptor CommandLineDescriptor[name=pdftotext,enabled=true,available=false,command=pdftotext,parameterString=-enc UTF-8 #{sourceFilePath} #{targetFilePath},testParameterString=,winParameterString=-enc UTF-8 #{sourceFilePath} #{targetFilePath},winTestParameterString=,winCommand=<null>,tester=<null>,readOutput=true,installationDirective=You need to install pdftotext.,installErrorMessage=<null>]). You need to install pdftotext.)
        2016-12-21 15:02:37,332 WARN  [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Command not available: wpd2text (command wpd2text not found in system path (descriptor CommandLineDescriptor[name=wpd2text,enabled=true,available=false,command=wpd2text,parameterString=#{inFilePath},testParameterString=,winParameterString=<null>,winTestParameterString=,winCommand=<null>,tester=<null>,readOutput=true,installationDirective=You need to install wpd2text (deb: libwpd-tools)  http://libwpd.sourceforge.net/download.html,installErrorMessage=<null>]). You need to install wpd2text (deb: libwpd-tools)  http://libwpd.sourceforge.net/download.html)
        2016-12-21 15:02:37,340 WARN  [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Command not available: soffice (command soffice not found in system path (descriptor CommandLineDescriptor[name=soffice,enabled=true,available=false,command=soffice,parameterString=--headless --norestore --writer --convert-to #{format} #{sourceFilePath} --outdir #{outDirPath},testParameterString=--version,winParameterString=<null>,winTestParameterString=--headless --cat test,winCommand=soffice.exe,tester=<null>,readOutput=true,installationDirective=You need to install LibreOffice and add soffice to the PATH environment variable.,installErrorMessage=<null>]). You need to install LibreOffice and add soffice to the PATH environment variable.)
        
        Show
        Frantz Fischer added a comment - When starting up the server: 2016-12-21 15:02:34,446 WARN [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Command not available: pdftotext (command pdftotext not found in system path (descriptor CommandLineDescriptor[name=pdftotext,enabled= true ,available= false ,command=pdftotext,parameterString=-enc UTF-8 #{sourceFilePath} #{targetFilePath},testParameterString=,winParameterString=-enc UTF-8 #{sourceFilePath} #{targetFilePath},winTestParameterString=,winCommand=< null >,tester=< null >,readOutput= true ,installationDirective=You need to install pdftotext.,installErrorMessage=< null >]). You need to install pdftotext.) 2016-12-21 15:02:37,332 WARN [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Command not available: wpd2text (command wpd2text not found in system path (descriptor CommandLineDescriptor[name=wpd2text,enabled= true ,available= false ,command=wpd2text,parameterString=#{inFilePath},testParameterString=,winParameterString=< null >,winTestParameterString=,winCommand=< null >,tester=< null >,readOutput= true ,installationDirective=You need to install wpd2text (deb: libwpd-tools) http: //libwpd.sourceforge.net/download.html,installErrorMessage=< null >]). You need to install wpd2text (deb: libwpd-tools) http://libwpd.sourceforge.net/download.html) 2016-12-21 15:02:37,340 WARN [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Command not available: soffice (command soffice not found in system path (descriptor CommandLineDescriptor[name=soffice,enabled= true ,available= false ,command=soffice,parameterString=--headless --norestore --writer --convert-to #{format} #{sourceFilePath} --outdir #{outDirPath},testParameterString=--version,winParameterString=< null >,winTestParameterString=--headless --cat test,winCommand=soffice.exe,tester=< null >,readOutput= true ,installationDirective=You need to install LibreOffice and add soffice to the PATH environment variable.,installErrorMessage=< null >]). You need to install LibreOffice and add soffice to the PATH environment variable.)
        Hide
        Frantz Fischer added a comment -

        On OSX, adding the following parameter is ineffective:

        jod.office.home=/Applications/LibreOffice.app/Contents/MacOS
        Show
        Frantz Fischer added a comment - On OSX, adding the following parameter is ineffective: jod.office.home=/Applications/LibreOffice.app/Contents/MacOS
        Hide
        Frantz Fischer added a comment -

        As a workaround one can update manually the PATH with

        export PATH=$PATH:/Applications/LibreOffice.app/Contents/MacOS
        
        Show
        Frantz Fischer added a comment - As a workaround one can update manually the PATH with export PATH=$PATH:/Applications/LibreOffice.app/Contents/MacOS

          People

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

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 20 minutes
              20m

                Agile