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

[jira] Created: (GERONIMO-4342) MimeMessage#writeTo doesn't flush the encoder stream

MimeMessage#writeTo doesn't flush the encoder stream
----------------------------------------------------

                 Key: GERONIMO-4342
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4342
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: mail
            Reporter: Andreas Veithen


MimeMessage#writeTo only flushes the underlying output stream provided by the caller, but not the encoder stream that wraps it. If the transfer encoding is Base64, this causes bytes at the end of the content to be lost.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4342) MimeMessage#writeTo doesn't flush the encoder stream

Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637904#action_12637904 ] 

Rick McGuire commented on GERONIMO-4342:
----------------------------------------

Great1  This was largely just a curiosity question.  You're doing a great job so far figuring out the failures and providing patches.  Don't be afraid to ask for assistance if you need any.  The api specs are not terrible rigorous in defining how somethings are supposed to behave, so we've been handling things on a failure-by-failure basis. 

> MimeMessage#writeTo doesn't flush the encoder stream
> ----------------------------------------------------
>
>                 Key: GERONIMO-4342
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4342
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>            Reporter: Andreas Veithen
>            Assignee: Rick McGuire
>         Attachments: GERONIMO-4342.patch.txt
>
>
> MimeMessage#writeTo only flushes the underlying output stream provided by the caller, but not the encoder stream that wraps it. If the transfer encoding is Base64, this causes bytes at the end of the content to be lost.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMO-4342) MimeMessage#writeTo doesn't flush the encoder stream

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

Rick McGuire reassigned GERONIMO-4342:
--------------------------------------

    Assignee: Rick McGuire

> MimeMessage#writeTo doesn't flush the encoder stream
> ----------------------------------------------------
>
>                 Key: GERONIMO-4342
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4342
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>            Reporter: Andreas Veithen
>            Assignee: Rick McGuire
>         Attachments: GERONIMO-4342.patch.txt
>
>
> MimeMessage#writeTo only flushes the underlying output stream provided by the caller, but not the encoder stream that wraps it. If the transfer encoding is Base64, this causes bytes at the end of the content to be lost.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-4342) MimeMessage#writeTo doesn't flush the encoder stream

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637888#action_12637888 ] 

Andreas Veithen commented on GERONIMO-4342:
-------------------------------------------

Rick,

Over the last couple of months I developed a test suite for the Axis2 transports, which include a SOAP over mail transport. All tests pass fine with Sun's implementation of JavaMail, and now I'm trying to make them work with Geronimo's implementation.

> MimeMessage#writeTo doesn't flush the encoder stream
> ----------------------------------------------------
>
>                 Key: GERONIMO-4342
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4342
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>            Reporter: Andreas Veithen
>            Assignee: Rick McGuire
>         Attachments: GERONIMO-4342.patch.txt
>
>
> MimeMessage#writeTo only flushes the underlying output stream provided by the caller, but not the encoder stream that wraps it. If the transfer encoding is Base64, this causes bytes at the end of the content to be lost.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-4342) MimeMessage#writeTo doesn't flush the encoder stream

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

Andreas Veithen updated GERONIMO-4342:
--------------------------------------

    Attachment: GERONIMO-4342.patch.txt

> MimeMessage#writeTo doesn't flush the encoder stream
> ----------------------------------------------------
>
>                 Key: GERONIMO-4342
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4342
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>            Reporter: Andreas Veithen
>         Attachments: GERONIMO-4342.patch.txt
>
>
> MimeMessage#writeTo only flushes the underlying output stream provided by the caller, but not the encoder stream that wraps it. If the transfer encoding is Base64, this causes bytes at the end of the content to be lost.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (GERONIMO-4342) MimeMessage#writeTo doesn't flush the encoder stream

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

Rick McGuire resolved GERONIMO-4342.
------------------------------------

    Resolution: Fixed

Committed revision 702800.

Thank you once again!  I'm curious, what are you using this for that's uncovering these problems?  It always nice to know the sort uses this that this code is getting applied to.  

> MimeMessage#writeTo doesn't flush the encoder stream
> ----------------------------------------------------
>
>                 Key: GERONIMO-4342
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4342
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>            Reporter: Andreas Veithen
>            Assignee: Rick McGuire
>         Attachments: GERONIMO-4342.patch.txt
>
>
> MimeMessage#writeTo only flushes the underlying output stream provided by the caller, but not the encoder stream that wraps it. If the transfer encoding is Base64, this causes bytes at the end of the content to be lost.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.