You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Jo...@ext.ec.europa.eu on 2014/02/17 16:09:13 UTC

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<ma...@ext.ec.europa.eu>


Re: mimepull 1.3 bug

Posted by Florian Müller <fm...@apache.org>.
 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 
 <Jo...@ext.ec.europa.eu>:
> 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
>  jorge.martin-cuervo@ext.ec.europa.eu [2]
>
>
>
> Links:
> ------
> [1] https://java.net/jira/browse/JAX_WS-965
> [2] mailto:jorge.martin-cuervo@ext.ec.europa.eu


RE: mimepull 1.3 bug

Posted by Jo...@ext.ec.europa.eu.
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<ma...@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<ma...@ext.ec.europa.eu>