ok2c commented on code in PR #629: URL: https://github.com/apache/httpcomponents-client/pull/629#discussion_r2021385388
########## httpclient5/src/test/java/org/apache/hc/client5/http/psl/TestPublicSuffixMatcher.java: ########## @@ -284,14 +284,14 @@ void testGetDomainRootPublicSuffixList() { checkPublicSuffix("shishi.中国", "shishi.中国"); checkPublicSuffix("中国", null); // Same as above, but punycoded. - checkPublicSuffix("xn--85x722f.com.cn", "xn--85x722f.com.cn"); - checkPublicSuffix("xn--85x722f.xn--55qx5d.cn", "xn--85x722f.xn--55qx5d.cn"); - checkPublicSuffix("www.xn--85x722f.xn--55qx5d.cn", "xn--85x722f.xn--55qx5d.cn"); - checkPublicSuffix("shishi.xn--55qx5d.cn", "shishi.xn--55qx5d.cn"); + checkPublicSuffix("xn--85x722f.Com.Cn", "食狮.com.cn"); + checkPublicSuffix("xn--85x722f.xn--55qx5d.CN", "食狮.公司.cn"); + checkPublicSuffix("www.xn--85x722f.xn--55qx5d.cn", "食狮.公司.cn"); + checkPublicSuffix("shishi.xn--55qx5d.cn", "shishi.公司.cn"); checkPublicSuffix("xn--55qx5d.cn", null); - checkPublicSuffix("xn--85x722f.xn--fiqs8s", "xn--85x722f.xn--fiqs8s"); - checkPublicSuffix("www.xn--85x722f.xn--fiqs8s", "xn--85x722f.xn--fiqs8s"); - checkPublicSuffix("shishi.xn--fiqs8s", "shishi.xn--fiqs8s"); + checkPublicSuffix("xn--85x722f.xn--fiqs8s", "食狮.中国"); + checkPublicSuffix("www.xn--85x722f.xn--fiqs8s", "食狮.中国"); + checkPublicSuffix("shishi.xn--fiqs8s", "shishi.中国"); Review Comment: > we could raise a discussion there? @massdosage We could but do not see the point. The problem with "formal" specification is that if not formal and consistent enough there are bound to be different interpretation. As far as I am concerned the implementation we have is perfectly consistent with their definition of "formal" behavior. As to why their own examples are inconsistent with the their specification I cannot say. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org