Bug#295114: libgnumail-java: Inconsistent results for InternetAddress(java.lang.String) and parse(java.lang.String, boolean)
Mykola A. Nickishov
"Mykola A. Nickishov" <mn@mn.com.ua>, 295114@bugs.debian.org
Sun Feb 13 13:24:15 2005
Package: libgnumail-java
Version: 1.0-3.1
Severity: normal
String illegalEmail = "\"M A. N \" <m@m>";
InternetAddress[] withParseStrict = InternetAddress.parse(illegalEmail,
true);
InternetAddress[] withParseNotStrict = InternetAddress.parse(
illegalEmail, false);
InternetAddress withConstructor = new InternetAddress(illegalEmail);
This code dies at last line with:
javax.mail.internet.AddressException: Illegal whitespace in string "M A. N " <m@m>
at javax.mail.internet.InternetAddress.validate(InternetAddress.java:950)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:106)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:84)
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (99, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-k7
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8)
Versions of packages libgnumail-java depends on:
ii j2se-dummy [java2-runtime] 0.1 Java(TM) 2 SDK (dummy package)
ii libgnuinet-java 1.1-2 extension library to provide extra
ii libgnujaf-java 1.0-2 free implementation of the javabea
ii orp-classpath [java1-runtime] 1:0.02.1-3 Free java class libraries (specifi
ii sun-j2sdk1.5 [java2-runtime] 1.5.0 Java(TM) 2 SDK, Standard Edition,
ii sun-j2sdk1.5debian [java2-run 0.17 Debian specific parts of Java(TM)
-- no debconf information