[ 
http://jira.nuxeo.org/browse/NXP-3821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florent Guillaume resolved NXP-3821.
------------------------------------

    Resolution: Not A Bug

Closed, not a Nuxeo bug.

> pdf2html conversion outputs garbage (null Blob)
> -----------------------------------------------
>
>                 Key: NXP-3821
>                 URL: http://jira.nuxeo.org/browse/NXP-3821
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>    Affects Versions: 5.2 GA
>         Environment: RHEL 5.5
> JDK1.6.0_14 (64bit)
>            Reporter: Sean Radford
>            Assignee: Thierry Delprat
>
> When trying to preview a PDF the output is pure garbage.
> It appears that the html version of the PDF (index.html) is being created in 
> the home directory of the running user (the image files are correctly in the 
> tmp directory) and so not found.
> This is supported by the unit-test TestPDFtoHtml in nuxeo-platform-core: the 
> index.html file ends-up in the root of the project instead of at 
> /tmp/pdf2html_xxxx
> -------------------------------------------------------------------------------
> Test set: org.nuxeo.ecm.platform.convert.tests.TestPDFToHtml
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.323 sec <<< 
> FAILURE!
> testConverter(org.nuxeo.ecm.platform.convert.tests.TestPDFToHtml)  Time 
> elapsed: 0.318 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<2> but was:<1>
>    at junit.framework.Assert.fail(Assert.java:47)
>    at junit.framework.Assert.failNotEquals(Assert.java:280)
>    at junit.framework.Assert.assertEquals(Assert.java:64)
>    at junit.framework.Assert.assertEquals(Assert.java:198)
>    at junit.framework.Assert.assertEquals(Assert.java:204)
>    at 
> org.nuxeo.ecm.platform.convert.tests.TestPDFToHtml.testConverter(TestPDFToHtml.java:95)
>    at 
> org.nuxeo.ecm.platform.convert.tests.TestPDFToHtml.testConverter(TestPDFToHtml.java:95)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at junit.framework.TestCase.runTest(TestCase.java:164)
>    at org.jmock.core.VerifyingTestCase.runBare(Unknown Source)
>    at junit.framework.TestResult$1.protect(TestResult.java:106)
>    at junit.framework.TestResult.runProtected(TestResult.java:124)
>    at junit.framework.TestResult.run(TestResult.java:109)
>    at junit.framework.TestCase.run(TestCase.java:120)
>    at junit.framework.TestSuite.runTest(TestSuite.java:230)
>    at junit.framework.TestSuite.run(TestSuite.java:225)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at 
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>    at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>    at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>    at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>    at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>    at java.lang.reflect.Method.invoke(Method.java:597)
>    at 
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>    at 
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to