[aem] code-assessment outbound-call-timeouts: HttpClients.createSystem() and createMinimal() are not detected

Open Beginner friendly
#581 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java
Domain
testing

Research direction

Start with plugins/aem/cloud-service/skills/code-assessment/scripts/analyzer/detectors/OutboundCallTimeouts.java and inspect how CREATION_MARKERS are checked and how its existing tests build fixtures. Add coverage for HttpClients.createSystem() and createMinimal() while preserving the enclosing-scope timeout suppression. Done when both clients without timeout configuration are detected and the existing suppression behavior still passes.

Written by the indexing model from the issue text.

Description

bug

The outbound-call-timeouts detector (plugins/aem/cloud-service/skills/code-assessment/scripts/analyzer/detectors/OutboundCallTimeouts.java, checked at 0044687) treats a client as constructed only when the text contains one of CREATION_MARKERS: .createDefault, .newBuilder, .newHttpClient, .build(, new HttpClientBuilder, new OkHttpClient. Apache HttpClient 4.x HttpClients.createSystem() and HttpClients.createMinimal() match none of them, so a client built with either is never flagged.

createSystem() matters on AEM as a Cloud Service: it honours the proxy system properties, so teams use it for the dedicated egress IP, yet in 4.x it sets no connect or socket timeout. In a November 2026 review, a createSystem() client with no RequestConfig was not reported.

Suggested fix: add .createSystem and .createMinimal to CREATION_MARKERS, with a test fixture for each. The existing suppression (any timeout token in the enclosing scope) still applies.

AI-assisted, filed on my behalf.

Dominant language
JavaScript
Stars
324
Forks
99
Avg merge
2d 7h
Merged PRs (30d)
121

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from adobe/skills

All issues in adobe/skills

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.