Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1991

PublicSuffixMatcher invalid behaviour

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.5.8
    • 4.5.9, 5.0 Beta5
    • None
    • None

    Description

      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 suffix.

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

       

      publicSuffixMatcher.getDomainRoot( "asd123asd" ) == null
      

       

       

      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:

      publicSuffixMatcher.matches( "asd123asd" ) == true

       

       

      Attachments

        Activity

          People

            olegk Oleg Kalnichevski
            cdalxndr cda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: