geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-6552) Javamail module not fully reads SMTP server responses
Date Mon, 18 Apr 2016 18:34:25 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-6552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15246270#comment-15246270
] 

Alexei Osipov commented on GERONIMO-6552:
-----------------------------------------

Attached patch fixes the first problem (inconsistent state).

> Javamail module not fully reads SMTP server responses
> -----------------------------------------------------
>
>                 Key: GERONIMO-6552
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6552
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>            Reporter: Alexei Osipov
>            Priority: Minor
>         Attachments: GERONIMO_6552_Read_all_lines_after_sending_content.patch
>
>
> Method {{sendData(MimeMessage msg)}} of class {{SMTPConnection}} in module {{geronimo-javamail_1.4_provider}}
reads only first line of response after sending content.
> This causes two problems in case of *multi-line* response:
> 1) Only the first line of response is received from remote server. So the SMPT session
is left in inconsistent state.
> 2) In case of error only the first line of error message is passed to exception.
> The problem is present in geronimo-javamail_1.4_provider version 1.8.4 and in trunk.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message