RE: mimepull 1.3 bug

2014-02-18 Thread Jorge.MARTIN-CUERVO
Done

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


Jorge MARTIN CUERVO
[cid:[email protected]]
European Commission
DG TRADE
Unit A4
CHAR 02/077
B-1049 Brussels/Belgium
+32 2 298 86 27
[email protected]

From: [email protected] 
[mailto:[email protected]]
Sent: Monday, February 17, 2014 4:09 PM
To: [email protected]
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 :

org.apache.chemistry.opencmis
chemistry-opencmis-client-impl
0.10.0


org.jvnet
mimepull


   


org.jvnet.mimepull
mimepull
1.9


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:[email protected]]
European Commission
DG TRADE
Unit A4
CHAR 02/077
B-1049 Brussels/Belgium
+32 2 298 86 27
[email protected]



Re: mimepull 1.3 bug

2014-02-17 Thread Florian Müller

Hi Jorge,

Please open an issue [1]. I'll look into it.


Thanks,

Florian



[1] https://issues.apache.org/jira/browse/CMIS



Am Montag, den 17.02.2014, 16:09 +0100 schrieb 
:

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 J

Somebody else discuss about this issue here :
https://java.net/jira/browse/JAX_WS-965 [1]

The issue is solved when I exclude the MIMEPULL dependency from
OPENCMIS CLIENT LIB and add manually the new version :

 org.apache.chemistry.opencmis

 chemistry-opencmis-client-impl

 0.10.0

 org.jvnet

 mimepull

 org.jvnet.mimepull

 mimepull

 1.9

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

 EUROPEAN COMMISSION
 DG TRADE
 Unit A4

CHAR 02/077
 B-1049 Brussels/Belgium
 +32 2 298 86 27
 [email protected] [2]



Links:
--
[1] https://java.net/jira/browse/JAX_WS-965
[2] mailto:[email protected]