FULL PRODUCT VERSION : java version "1.6.0_02" Java(TM) SE Runtime Environment (build 1.6.0_02-b06) Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows XP [Version 5.1.2600] A DESCRIPTION OF THE PROBLEM : The NTLM-authentication in HTTPUrlConnection doesn't work if the windows password contains non-ASCII letters. Reason: "NTLMAuthSequence.c" contains the function "Java_sun_net_www_protocol_http_NTLMAuthSequence_getCredentialsHandle" that encodes the password in UTF-8 and sends it to the Windows API function "AcquireCredentialsHandleA" with the flag "SEC_WINNT_AUTH_IDENTITY_ANSI" And so a "��" (ä) converts to c3 a4. But e4 is expected -> �� in ANSI REPRODUCIBILITY : This bug can be reproduced always. CUSTOMER SUBMITTED WORKAROUND : Password with ASCII letters
|