[
https://issues.apache.org/jira/browse/VALIDATOR-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved VALIDATOR-356.
----------------------------
Resolution: Fixed
Fix Version/s: 1.5.0
URL: http://svn.apache.org/r1651873
Log:
VALIDATOR-356 IDN.toASCII drops trailing dot in Java 6 & 7
Modified:
commons/proper/validator/trunk/src/changes/changes.xml
commons/proper/validator/trunk/src/main/java/org/apache/commons/validator/routines/DomainValidator.java
commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/DomainValidatorTest.java
commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/UrlValidatorTest.java
> IDN.toASCII drops trailing dot in Java 6 & 7
> --------------------------------------------
>
> Key: VALIDATOR-356
> URL: https://issues.apache.org/jira/browse/VALIDATOR-356
> Project: Commons Validator
> Issue Type: Bug
> Affects Versions: 1.4.1 Release
> Reporter: Sebb
> Fix For: 1.5.0
>
>
> The Java 6 method {{String java.net.IDN.toASCII(String)}} drops the final
> input character if it is a dot (or equivalent, see RFC3490 3.1 1)
> This causes problems for authority and domain validation.
> This problem has been seen in
> Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
> and
> Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
> but appears to be fixed in
> Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
> Note also that the Java 8 version throws
> java.lang.IllegalArgumentException: Empty label is not a legal name
> if the argument contains two consecutive dots.
> Fix to follow.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)