[xwiki/xwiki-platform] 2b8939: [SONAR] Use system HTTP client properties and stre...
Branch: refs/heads/fix/sonar-extension-http-client-resource-leak Home: https://github.com/xwiki/xwiki-platform Commit: 2b8939a6ab386f45370ae64870338334129ed47c https://github.com/xwiki/xwiki-platform/commit/2b8939a6ab386f45370ae64870338... Author: Vincent Massol <[email protected]> Date: 2026-07-20 (Mon, 20 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-repository/xwiki-platform-repository-server-api/src/main/java/org/xwiki/repository/internal/resources/ExtensionVersionFileRESTResource.java Log Message: ----------- [SONAR] Use system HTTP client properties and stream via StreamingOutput Build the HTTP client with useSystemProperties() so it honors the JVM proxy settings, removing the explicit SystemDefaultRoutePlanner wiring. The custom User-Agent is kept because some upstream servers reject requests without one. Replace the custom ProxyInputStream subclass with a StreamingOutput that uses HttpEntity.writeTo() and closes the client and response through try-with-resources. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications