Skip to content

[Feat] [SDK-399] Add java agent for network telemetry events#374

Open
buongarzoni wants to merge 28 commits into
masterfrom
feat/SDK-399/add-java-agent-for-network-telemetry-events
Open

[Feat] [SDK-399] Add java agent for network telemetry events#374
buongarzoni wants to merge 28 commits into
masterfrom
feat/SDK-399/add-java-agent-for-network-telemetry-events

fix(java-agent): instrument Apache HC doExecute() to cover all execut…

cbab9d5
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Jul 13, 2026 in 32m 37s

Code review found 1 potential issue

Found 1 candidates, confirmed 1. See review comments for details.

Details

Severity Count
🔴 Important 0
🟡 Nit 1
🟣 Pre-existing 0
Severity File:Line Issue
🟡 Nit rollbar-java-agent/src/main/java/com/rollbar/agent/NetworkEventBridge.java:141-155 composeUrl misidentifies relative URI with '://' in query as absolute, drops host

Annotations

Check warning on line 155 in rollbar-java-agent/src/main/java/com/rollbar/agent/NetworkEventBridge.java

See this annotation in the file changed.

@claude claude / Claude Code Review

composeUrl misidentifies relative URI with '://' in query as absolute, drops host

The `contains("://")` check at NetworkEventBridge.java:145 also matches when `://` appears inside a query parameter or path, so a relative request URI carrying a nested URL — e.g. `/api/redirect?url=https://other.example.com/foo` from an OAuth redirect endpoint, URL shortener, or proxy-style API — is misidentified as absolute, the base host is dropped, and after `UrlSanitizer` strips the query the recorded telemetry URL becomes just `/api/redirect` with no host. Narrow trigger (HC4/HC5 host-base