You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2011/08/01 23:56:48 UTC

[jira] [Created] (AXIOM-379) Attachments buffered using files are not decoded

Attachments buffered using files are not decoded
------------------------------------------------

                 Key: AXIOM-379
                 URL: https://issues.apache.org/jira/browse/AXIOM-379
             Project: Axiom
          Issue Type: Bug
    Affects Versions: 1.2.12
            Reporter: Andreas Veithen
            Assignee: Andreas Veithen
             Fix For: 1.2.13


When PartOnFile is used (i.e. when the length is above the threshold and a file is used to buffer the attachment) and the attachment uses a Content-Transfer-Encoding other than binary, then the input stream returned by the corresponding DataHandler is incorrect. It represents the raw content of the attachment, but it should be the decoded content. This only occurs with PartOnFile; PartOnMemory(Enhanced) works correctly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[jira] [Resolved] (AXIOM-379) Attachments buffered using files are not decoded

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIOM-379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIOM-379.
-----------------------------------

    Resolution: Fixed

> Attachments buffered using files are not decoded
> ------------------------------------------------
>
>                 Key: AXIOM-379
>                 URL: https://issues.apache.org/jira/browse/AXIOM-379
>             Project: Axiom
>          Issue Type: Bug
>    Affects Versions: 1.2.12
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>             Fix For: 1.2.13
>
>
> When PartOnFile is used (i.e. when the length is above the threshold and a file is used to buffer the attachment) and the attachment uses a Content-Transfer-Encoding other than binary, then the input stream returned by the corresponding DataHandler is incorrect. It represents the raw content of the attachment, but it should be the decoded content. This only occurs with PartOnFile; PartOnMemory(Enhanced) works correctly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[jira] [Commented] (AXIOM-379) Attachments buffered using files are not decoded

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIOM-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078331#comment-13078331 ] 

Hudson commented on AXIOM-379:
------------------------------

Integrated in ws-axiom-trunk #478 (See [https://builds.apache.org/job/ws-axiom-trunk/478/])
    AXIOM-379: Always decode the attachment while reading from the MIME message instead of buffering the encoded content. Also make sure that the DataHandler instances created by Attachments actually return the decoded content.

veithen : 
Files : 
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartOnMemory.java
* /webservices/commons/trunk/modules/axiom/src/docbkx/userguide.xml
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartFactory.java
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
* /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/impl/PartOnMemoryEnhanced.java


> Attachments buffered using files are not decoded
> ------------------------------------------------
>
>                 Key: AXIOM-379
>                 URL: https://issues.apache.org/jira/browse/AXIOM-379
>             Project: Axiom
>          Issue Type: Bug
>    Affects Versions: 1.2.12
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>             Fix For: 1.2.13
>
>
> When PartOnFile is used (i.e. when the length is above the threshold and a file is used to buffer the attachment) and the attachment uses a Content-Transfer-Encoding other than binary, then the input stream returned by the corresponding DataHandler is incorrect. It represents the raw content of the attachment, but it should be the decoded content. This only occurs with PartOnFile; PartOnMemory(Enhanced) works correctly.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org