Approved.

On Mar 8, 2012, at 3:54 AM, Weijun Wang wrote:

> Hi All
> 
> This is a request to backport a jdk8 fix into jdk7u6.
> 
> CR: 6961765: Double byte characters corrupted in DN for LDAP referrals
> Weblink: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6961765
> 
> Description:
> 
> We were using UrlUtil.decode() to decode an ASCII-formatted LDAP URI to get 
> its original component. If the URI provided is not pure ASCII, it leads to an 
> error. The URLDecoder class is much more robust in this case.
> 
> The Java URI class explicitly allows Unicode characters in an URI string and 
> we should support it in LDAP URI also.
> 
> The fix is already included in jdk8 as:
> 
>   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/e8438dc196bb
>   Reviewed-by: vinnie
> 
> The patch for jdk7u6 is identical to the one in jdk8.
> 
> I intend to push it to
> 
>   ssh://hg.openjdk.java.net/jdk7u/jdk7u-dev-gate/jdk
> 
> Thanks
> Weijun

Reply via email to