You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Simone Gianni (JIRA)" <ji...@apache.org> on 2006/03/29 16:54:15 UTC
[jira] Updated: (COCOON-1818) SendMailTransformer misses closing
tag when recipient address is malformed
[ http://issues.apache.org/jira/browse/COCOON-1818?page=all ]
Simone Gianni updated COCOON-1818:
----------------------------------
Attachment: sendmail-exceptions.diff
I'm not an expert about this block, but i made the following modifications :
- The sendEndElementEventNS is now called inside a finally, this way the output is <result><exception>...</exception></result>
- A SAXException is now propagated up to when it happens in sendMail, since IMMO it makes no sense to intercept a SAXException and try to generate an exception report producing more SAX events.
The only thing i'm not sure is the this.ignoreHookCount-- . But since it's SAX related i moved it to the finally as well as the sendEndElementEventNS.
> SendMailTransformer misses closing tag when recipient address is malformed
> --------------------------------------------------------------------------
>
> Key: COCOON-1818
> URL: http://issues.apache.org/jira/browse/COCOON-1818
> Project: Cocoon
> Type: Bug
> Components: Blocks: Mail
> Reporter: Jasha Joachimsthal
> Attachments: sendmail-exceptions.diff
>
> When a recipient address contains an illegal character (, ; <space> a@b@com etc), an exception is being thrown by method sendMail(List newAddresses, Transport trans).
> The execution of the try in method sendMail() is stopped which may have created a <email:result> tag.
> No </email:result> end tag is created when this occurs.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira