Skip to content

Conversation

@sumeetkulkarni11
Copy link

### What
Fixes a Semgrep rule related to the deprecated DefaultHttpClient usage.

### Why
DefaultHttpClient is deprecated and does not support TLS 1.2, which makes it a security risk.
The existing rule incorrectly flagged usage in DefaultHttpClientBuilder, which already relies on HttpClientBuilder.

This update corrects the rule to avoid false positives and improve scan accuracy.

### Details

  • Rule ID: defaulthttpclient-is-deprecated
  • Rule Message: DefaultHttpClient is deprecated and does not support TLS 1.2. Use HttpClientBuilder instead.
  • Affected file:
    http-client/src/main/java/io/micronaut/http/client/netty/DefaultHttpClientBuilder.java
  • Line: 297

### Tests

  • Semgrep rule validation
  • No runtime behavior changes

### Notes
This is a rule-level correction only and does not introduce any functional or API changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant