[jira] [Created] (HTTPCLIENT-2336) Update PublicSuffixMatcher to use "formal algorithm"

2024-08-15 Thread Mass Dosage (Jira)
Mass Dosage created HTTPCLIENT-2336: --- Summary: Update PublicSuffixMatcher to use "formal algorithm" Key: HTTPCLIENT-2336 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2336 Project: HttpCompon

[jira] [Updated] (HTTPCLIENT-2336) Update PublicSuffixMatcher to use "formal algorithm"

2024-08-15 Thread Mass Dosage (Jira)
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mass Dosage updated HTTPCLIENT-2336: Description: We’ve been using the {{PublicSuffixMatcher}} component from “httpcompone

[PR] Update PublicSuffixMatcher to use "formal algorithm" [httpcomponents-client]

2024-08-15 Thread via GitHub
massdosage opened a new pull request, #566: URL: https://github.com/apache/httpcomponents-client/pull/566 See https://issues.apache.org/jira/browse/HTTPCLIENT-2336 for context. After porting over the tests for the formal algorithm from https://github.com/publicsuffix/list/blob/master/

Re: [PR] Update PublicSuffixMatcher to use "formal algorithm" [httpcomponents-client]

2024-08-15 Thread via GitHub
massdosage commented on code in PR #566: URL: https://github.com/apache/httpcomponents-client/pull/566#discussion_r1718196054 ## httpclient5/src/test/java/org/apache/hc/client5/http/impl/cookie/TestPublicSuffixListParser.java: ## @@ -111,7 +111,7 @@ void testParseLocal() {

Re: [PR] Update PublicSuffixMatcher to use "formal algorithm" [httpcomponents-client]

2024-08-15 Thread via GitHub
massdosage commented on code in PR #566: URL: https://github.com/apache/httpcomponents-client/pull/566#discussion_r1718197205 ## httpclient5/src/test/java/org/apache/hc/client5/http/ssl/TestDefaultHostnameVerifier.java: ## @@ -258,11 +259,11 @@ void testIdentityMatching() {

[jira] [Commented] (HTTPCLIENT-2336) Update PublicSuffixMatcher to use "formal algorithm"

2024-08-15 Thread Mass Dosage (Jira)
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17873874#comment-17873874 ] Mass Dosage commented on HTTPCLIENT-2336: - Pull request showing a possible w

Re: [PR] Update PublicSuffixMatcher to use "formal algorithm" [httpcomponents-client]

2024-08-15 Thread via GitHub
ok2c commented on PR #566: URL: https://github.com/apache/httpcomponents-client/pull/566#issuecomment-2291081455 > I'm wondering if the legacy mode should be an enum instead of a boolean. @massdosage Let's simplify things. I do not think we need to preserve the old legacy behavior,

Re: [PR] Update PublicSuffixMatcher to use "formal algorithm" [httpcomponents-client]

2024-08-15 Thread via GitHub
massdosage commented on PR #566: URL: https://github.com/apache/httpcomponents-client/pull/566#issuecomment-2291221238 @garydgregory @ok2c thanks for the prompt initial review. I've removed the `legacyMode` parameter as requested. -- This is an automated message from the Apache Git Servi

[PR] Implement the "len" part of contract for java.io.InputStream.read(byte[], int, int) [httpcomponents-core]

2024-08-15 Thread via GitHub
garydgregory opened a new pull request, #476: URL: https://github.com/apache/httpcomponents-core/pull/476 Implement the "len" part of contract for `java.io.InputStream.read(byte[], int, int)` - If `len` is zero, then no bytes are read and 0 is returned. - Be explicit like we are fo