Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2210216 | 7u2 | Chris Hegarty | P3 | Closed | Fixed | b08 |
JDK-2210215 | 6u30 | Robert Mckenna | P3 | Closed | Fixed | b08 |
Consider the following:
import java.net.*;
public class Test {
public static void main(String[] args) throws Exception {
URI uri1 = new URI("http://host/a%00");
URI uri2 = new URI("http://host/aZ00");
System.out.println(uri1.equals(uri2));
}
}
It incorrectly prints true with jdk7-b140 (same thing for all previous releases)
import java.net.*;
public class Test {
public static void main(String[] args) throws Exception {
URI uri1 = new URI("http://host/a%00");
URI uri2 = new URI("http://host/aZ00");
System.out.println(uri1.equals(uri2));
}
}
It incorrectly prints true with jdk7-b140 (same thing for all previous releases)
- backported by
-
JDK-2210215 URI.equals may incorrectly return true with escaped octets
-
- Closed
-
-
JDK-2210216 URI.equals may incorrectly return true with escaped octets
-
- Closed
-