chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jorge.MARTIN-CUE...@ext.ec.europa.eu>
Subject RE: mimepull 1.3 bug
Date Tue, 18 Feb 2014 13:12:06 GMT
Done

https://issues.apache.org/jira/browse/CMIS-760


Jorge MARTIN CUERVO
[cid:image001.gif@01CCF6D0.4613B970]
European Commission
DG TRADE
Unit A4
CHAR 02/077
B-1049 Brussels/Belgium
+32 2 298 86 27
jorge.martin-cuervo@ext.ec.europa.eu<mailto:jorge.martin-cuervo@ext.ec.europa.eu>

From: Jorge.MARTIN-CUERVO@ext.ec.europa.eu [mailto:Jorge.MARTIN-CUERVO@ext.ec.europa.eu]
Sent: Monday, February 17, 2014 4:09 PM
To: dev@chemistry.apache.org
Subject: mimepull 1.3 bug

Hello all,

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?
Thanks in advance.

Jorge MARTIN CUERVO
[cid:image001.gif@01CCF6D0.4613B970]
European Commission
DG TRADE
Unit A4
CHAR 02/077
B-1049 Brussels/Belgium
+32 2 298 86 27
jorge.martin-cuervo@ext.ec.europa.eu<mailto:jorge.martin-cuervo@ext.ec.europa.eu>


Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message