geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick McGuire (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (GERONIMO-4261) MimeMessage throws IndexOutOfBoundsException on malformed data
Date Mon, 25 Aug 2008 13:07:44 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-4261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rick McGuire resolved GERONIMO-4261.
------------------------------------

    Resolution: Fixed

Committed revision 688713.

> MimeMessage throws IndexOutOfBoundsException on malformed data
> --------------------------------------------------------------
>
>                 Key: GERONIMO-4261
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4261
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: specs
>            Reporter: Stefano Bagnara
>            Assignee: Rick McGuire
>
>     public void testGeronimoIndexOutOfBounds() throws Exception {
>         String message = "                  \r\n"+
>             "Subject: test\r\n"+
>             "\r\n"+
>             "Body\r\n";
>         byte[] messageBytes = message.getBytes("US-ASCII");
>         MimeMessage m = new MimeMessage(null, new ByteArrayInputStream(
>                 messageBytes));
>     }
> An empty line (filled by spaces) on top of a mime stream makes geronimo throw this exception.

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


Mime
View raw message