[xwiki/xwiki-platform] a27bc9: [SONAR] Fix resource leak: migrate from deprecated...
Branch: refs/heads/fix/sonar-extension-http-client-resource-leak Home: https://github.com/xwiki/xwiki-platform Commit: a27bc947734fe03b83fc18e8ef0bc66b01ae3bb4 https://github.com/xwiki/xwiki-platform/commit/a27bc947734fe03b83fc18e8ef0bc... Author: Claude <[email protected]> Date: 2026-05-13 (Wed, 13 May 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] Fix resource leak: migrate from deprecated DefaultHttpClient to CloseableHttpClient Fixes SonarCloud blocker issue S2095 in ExtensionVersionFileRESTResource.java. The DefaultHttpClient was never closed after use, leaking HTTP connections. Migrated to Apache HttpClient 5.x (already declared as direct dependency) using CloseableHttpClient with try-with-resources via response handler pattern. Also buffers the response entity as byte[] before closing the client to avoid reading from a closed connection. https://sonarcloud.io/project/issues?id=org.xwiki.platform:xwiki-platform&is... To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications