synth3 created HTTPCLIENT-2106:
----------------------------------
Summary: Credentials charset for DigestScheme can not be
configured any more
Key: HTTPCLIENT-2106
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2106
Project: HttpComponents HttpClient
Issue Type: Bug
Components: HttpClient (classic)
Affects Versions: 5.0.1
Reporter: synth3
I am currently migrating from hc 4.x to hc 5.0.1 and faced a Problem:
In hc 4.x I was able to set the credentials charset to use for digest auth by
creating a "DigestSchemeFactory" using this constructor:
[https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/auth/DigestScheme.html#DigestScheme(java.nio.charset.Charset)]
and adding the instance to a "AuthSchemeRegistry" which I set as default for
the client instance to use.
This is no longer possible, but probably needed when e.g. a password contains
characters outside of "ISO-8859-1" (the current internal default for
DigestScheme).
A possible (unattractive) workaround would be copying alot of code (implement a
own "DigestSchemeFactory", overwrite
"org.apache.hc.client5.http.impl.auth.DigestScheme.generateAuthResponse(HttpHost,
HttpRequest, HttpContext)" and copy/modify
"org.apache.hc.client5.http.impl.auth.DigestScheme.createDigestResponse(HttpRequest)").
Also: Is there a Place where I find information that helps me to understand the
decisions made for hc 5?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]