You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by al...@yahoo.com.INVALID on 2015/09/22 18:32:37 UTC
Use of PublicSuffixMatcherLoader and CookieSpecRegistries with
simple host names (2)
Hello,
I did some more debugging on the PublicSuffixMatcher issue that I asked about earlier.
So, if I understand the intention of this code correctly, the problem seems to be in
org.apache.http.impl.cookie.PublicSuffixDomainFilter.match(Cookie, CookieOrigin). This method returns a boolean indicating whether the domain is in the blacklist.
For any host name that is not a "localhost", the PublicSuffixMatcher.matches() is called, on line 76. This method returns true for any hostname that does not contain a dot charcter. Which causes the return false, on line 77.
Is this a correct behavior? If my server is called "server1", why should its name "match" a public suffix? And how do I make this code to recognize simple host names like this?
This is client 4.5.
Thank you again
Alex
Re: Use of PublicSuffixMatcherLoader and CookieSpecRegistries with
simple host names (2)
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Tue, 2015-09-22 at 16:32 +0000, alex.berns@yahoo.com.INVALID wrote:
> Hello,
>
> I did some more debugging on the PublicSuffixMatcher issue that I asked about earlier.
>
> So, if I understand the intention of this code correctly, the problem seems to be in
> org.apache.http.impl.cookie.PublicSuffixDomainFilter.match(Cookie, CookieOrigin). This method returns a boolean indicating whether the domain is in the blacklist.
>
> For any host name that is not a "localhost", the PublicSuffixMatcher.matches() is called, on line 76. This method returns true for any hostname that does not contain a dot charcter. Which causes the return false, on line 77.
>
> Is this a correct behavior? If my server is called "server1", why should its name "match" a public suffix? And how do I make this code to recognize simple host names like this?
>
Please raise an issue in JIRA.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org