You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Jorge Martin Cuervo (JIRA)" <ji...@apache.org> on 2014/02/18 14:12:20 UTC
[jira] [Created] (CMIS-760) mimepull 1.3 bug
Jorge Martin Cuervo created CMIS-760:
----------------------------------------
Summary: mimepull 1.3 bug
Key: CMIS-760
URL: https://issues.apache.org/jira/browse/CMIS-760
Project: Chemistry
Issue Type: Bug
Components: opencmis-client
Affects Versions: OpenCMIS 0.10.0, OpenCMIS 0.9.0
Reporter: Jorge Martin Cuervo
Priority: Critical
The library "chemistry-opencmis-client-impl" (version 0.9 / 0.10) bring another library called "org.jvnet.mimepull" (version 1.3).
The "mimepull" lib has an inner class called org.jvnet.mimepull.DataHead$ReadMultiStream which seems to be buggy.
This "ReadMutliStream" doesn't conform to the "InputStream" contract : shortly : Exception is thrown where it should'nt
Somebody else discuss about this issue here : https://java.net/jira/browse/JAX_WS-965
The issue is solved when I exclude the mimepull dependency from opencmis client lib and add manually the new version :
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-impl</artifactId>
<version>0.10.0</version>
<exclusions>
<exclusion>
<groupId>org.jvnet</groupId>
<artifactId>mimepull</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jvnet.mimepull</groupId>
<artifactId>mimepull</artifactId>
<version>1.9</version>
</dependency>
To reproduce, here is some pseudo-code using Apache PDFBox:
outputStream : any outputstream
inputstreams should come from multiple ContentStream.getStream();
PDFMergerUtility pdfMergerUtility = new PDFMergerUtility();
for (InputStream inputStream : inputs) {
pdfMergerUtility.addSource(inputStream);
}
pdfMergerUtility.setDestinationStream(output);
pdfMergerUtility.mergeDocuments();
Could you please change the version of the dependency of mimepull for the next version?
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)