Niels Basjes created HTTPCLIENT-2030:
----------------------------------------

             Summary: PublicSuffixMatcher::getDomainRoot with expectation fails 
on invalid domain names.
                 Key: HTTPCLIENT-2030
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2030
             Project: HttpComponents HttpClient
          Issue Type: Bug
            Reporter: Niels Basjes


Assume 
    PublicSuffixMatcher matcher = PublicSuffixMatcherLoader.getDefault();
 Then this 
     matcher.getDomainRoot("www.example.unknown")
 returns 
    "unknown"
 which is correct because no expectation was given about the domain name.

However when I do set a required expectation with something like
    matcher.getDomainRoot("www.example.unknown", DomainType.ICANN)
 then the current implementation still returns 
   "unknown"
 instead of the expected 
   null
 indicating that there was no match.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to