[ 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.