You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "joegallo (via GitHub)" <gi...@apache.org> on 2025/03/05 22:03:14 UTC

[PR] Fix PublicSuffixMatcherLoader#getDefault [httpcomponents-client]

joegallo opened a new pull request, #621:
URL: https://github.com/apache/httpcomponents-client/pull/621

   The code of `getDefault` reads like it's supposed to load the entries from `PUBLIC_SUFFIX_LIST` by default, but it doesn't actually work that way in practice. I think this is a bug. This works correctly on 4.x, but the list there already starts with a leading slash:
   
   https://github.com/apache/httpcomponents-client/blob/54900db4653d7f207477e6ee40135b88e9bcf832/httpclient/src/main/java/org/apache/http/conn/util/PublicSuffixMatcherLoader.java#L86
   
   This was sneaking past the tests, because the test for getDefault only checks that it isn't `null`, but a non-null nearly empty default PublicSuffixMatcher is still provided in the case of the url not existing, and the tests for PublicSuffixMatcher themselves reimplement the default loading logic (correctly, since they rely on `ClassLoader#getResource` rather than `Class#getResource`) and so they weren't running into the bug either.


-- 
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-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Fix PublicSuffixMatcherLoader#getDefault [httpcomponents-client]

Posted by "KeekLove (via GitHub)" <gi...@apache.org>.
KeekLove commented on PR #621:
URL: https://github.com/apache/httpcomponents-client/pull/621#issuecomment-3050681713

   > > https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-27820 Will it affect httpclient4?
   > 
   > Only 5.4.0, 5.4.1, and 5.4.2, explicitly excluding 5.4.3
   
   Thank you so much


-- 
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-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Fix PublicSuffixMatcherLoader#getDefault [httpcomponents-client]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on PR #621:
URL: https://github.com/apache/httpcomponents-client/pull/621#issuecomment-2703605563

   Cherry-picked to `5.4.x`


-- 
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-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Fix PublicSuffixMatcherLoader#getDefault [httpcomponents-client]

Posted by "KeekLove (via GitHub)" <gi...@apache.org>.
KeekLove commented on PR #621:
URL: https://github.com/apache/httpcomponents-client/pull/621#issuecomment-3047187783

   https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-27820
   Will it affect httpclient4?
   


-- 
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-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Fix PublicSuffixMatcherLoader#getDefault [httpcomponents-client]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on PR #621:
URL: https://github.com/apache/httpcomponents-client/pull/621#issuecomment-2703588398

   @joegallo That you for contributing this fix.


-- 
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-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Fix PublicSuffixMatcherLoader#getDefault [httpcomponents-client]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on PR #621:
URL: https://github.com/apache/httpcomponents-client/pull/621#issuecomment-3048637379

   > https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-27820 Will it affect httpclient4?
   
   Only 5.4.0, 5.4.1, and 5.4.2, explicitly excluding 5.4.3


-- 
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-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Fix PublicSuffixMatcherLoader#getDefault [httpcomponents-client]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c merged PR #621:
URL: https://github.com/apache/httpcomponents-client/pull/621


-- 
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-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org