You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Robert Burrell Donkin (JIRA)" <se...@james.apache.org> on 2008/05/26 21:53:57 UTC
[jira] Closed: (MIME4J-31) StringIndexOutOfBoundsException in
AddressListParser Line:540
[ https://issues.apache.org/jira/browse/MIME4J-31?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Burrell Donkin closed MIME4J-31.
---------------------------------------
Resolution: Fixed
Fix Version/s: 0.4
This email address is invalid so a ParseException should be thrown. This now works in trunk.
> StringIndexOutOfBoundsException in AddressListParser Line:540
> -------------------------------------------------------------
>
> Key: MIME4J-31
> URL: https://issues.apache.org/jira/browse/MIME4J-31
> Project: Mime4j
> Issue Type: Bug
> Affects Versions: 0.3
> Environment: Sun Java 1.5
> Reporter: Immo Feldkamp
> Fix For: 0.4
>
>
> An address header like
> CC: ""foo@bar.com
> raises a StringIndexOutOfBoundsException.
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.String.charAt(String.java:558)
> at org.apache.james.mime4j.field.address.parser.AddressListParser.local_part(AddressListParser.java:540)
> at org.apache.james.mime4j.field.address.parser.AddressListParser.addr_spec(AddressListParser.java:476)
> at org.apache.james.mime4j.field.address.parser.AddressListParser.address(AddressListParser.java:142)
> at org.apache.james.mime4j.field.address.parser.AddressListParser.address_list(AddressListParser.java:84)
> at org.apache.james.mime4j.field.address.parser.AddressListParser.parseAll(AddressListParser.java:69)
> at org.apache.james.mime4j.field.address.parser.AddressListParser.parse(AddressListParser.java:39)
> at org.apache.james.mime4j.field.address.AddressList.parse(AddressList.java:115)
> at org.apache.james.mime4j.field.AddressListField$Parser.parse(AddressListField.java:52)
> at org.apache.james.mime4j.field.DelegatingFieldParser.parse(DelegatingFieldParser.java:45)
> at org.apache.james.mime4j.field.Field.parse(Field.java:106)
> ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org