Skip to content

x/net/publicsuffix: ICANN flag returned not aligned with public suffix location in the list #22985

@eminano

Description

@eminano

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.9.2

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

goos: darwin
goarch: amd64

What did you do?

Call PublicSuffix with input domain "transurl.be"
https://play.golang.org/p/SLdVLEzpk4

What did you expect to see?

ICANN flag set to true

List contains "be" within the ICANN delimiters:
// be : https://en.wikipedia.org/wiki/.be
// Confirmed by registry tech@dns.be 2008-06-08
be
ac.be

and "*.transurl.be" outside.

// TransIP : htts://www.transip.nl
// Submitted by Rory Breuk rbreuk@transip.nl
*.transurl.be
*.transurl.eu
*.transurl.nl

What did you see instead?

ICANN flag set to false

I am not sure if this behaviour is expected. Should transurl.be match *.transurl.be, given it doesn't have a 3rd level domain?
Also, since the public suffix domain returned is "be" , I would expect for that rule to be the one being matched, and therefore having ICANN set to true.

There are more occurrences of this scenario, such as "0emm.com".

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions