geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bagnara (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-4261) MimeMessage throws IndexOutOfBoundsException on malformed data
Date Sun, 24 Aug 2008 14:59:44 GMT
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