cda created HTTPCLIENT-1991:
-------------------------------

             Summary: PublicSuffixMatcher invalid behaviour
                 Key: HTTPCLIENT-1991
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1991
             Project: HttpComponents HttpClient
          Issue Type: Bug
    Affects Versions: 4.5.8
            Reporter: cda


The matches should accept only the suffixes from the list, instead it accepts 
all one word gibberish.

Examples:

 

>From *PublicSuffixMatcher.getDomainRoot* javadocs: _returns *null* if given 
>domain represents a public suffi__x._

The following should not return null, as it is not a public suffix:

 
{code:java}
publicSuffixMatcher.getDomainRoot( "asd123asd" ) == null
{code}
 

 

>From *PublicSuffixMatcher.matches* javadocs: _Tests whether the given domain 
>matches any of entry from the public suffix list._

The following text is not a public suffix entry but it returns true:
{code:java}
publicSuffixMatcher.matches( "asd123asd" ) == true{code}
 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to