Skip to content

Use httpcore HttpStatus instead of the commons-httpclient 3 one - #541

Open
NicoPiel wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
NicoPiel:modernise/httpclient3-httpstatus
Open

NicoPiel wants to merge 1 commit into
OpenIntegrationEngine:mainfrom
NicoPiel:modernise/httpclient3-httpstatus

Conversation

@NicoPiel

Copy link
Copy Markdown
Contributor

What

ConnectServiceUtil, HttpReceiver and MirthWebServer use httpcore 4's org.apache.http.HttpStatus instead of commons-httpclient 3's.

Why

This is one step toward dropping commons-httpclient 3.0.1, which has been EOL since 2007.

Reviewer notes

  • Only SC_OK, SC_MOVED_TEMPORARILY, SC_NOT_FOUND and SC_INTERNAL_SERVER_ERROR are used. httpcore defines all four with the same values, and they're compile-time constants.
  • All three files already imported other org.apache.http classes, so httpcore was already required wherever they run (client, CLI, server).
  • The jar can only be removed once this, the HTTPUtil change and the WebDAV rewrite are merged.
  • Verified with ./gradlew :server:compileJava :client:compileJava :command:compileJava and the HttpReceiver* tests (19).

🤖 Generated with Claude Code

ConnectServiceUtil, HttpReceiver and MirthWebServer only use the SC_* constants, which httpcore 4 defines with the same values.

Signed-off-by: Nico Piel <nico.piel@hotmail.de>
@github-actions

Copy link
Copy Markdown

Test Results

130 files  ±0  130 suites  ±0   3m 57s ⏱️ +46s
789 tests ±0  789 ✅ ±0  0 💤 ±0  0 ❌ ±0 
915 runs  ±0  909 ✅ ±0  6 💤 ±0  0 ❌ ±0 

Results for commit 963268b. ± Comparison against base commit 4589238.

@gibson9583 gibson9583 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks safe to merge.

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.

3 participants