Skip to content

Fix Apache Http Client dependency#3830

Merged
strehle merged 1 commit intodevelopfrom
apach5-fix
Apr 12, 2026
Merged

Fix Apache Http Client dependency#3830
strehle merged 1 commit intodevelopfrom
apach5-fix

Conversation

@strehle
Copy link
Copy Markdown
Member

@strehle strehle commented Apr 12, 2026

Fix Apache dependency

Found during working on OpenSAML 5 update. With opensaml 5 we do not have any furhter library deps for apache 4 clients thus this fails

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates Apache HttpComponents references to align with the HttpClient 5 / HttpCore 5 packages, removing legacy (4.x) constants and presence checks.

Changes:

  • Update the runtime class-presence check in OAuth2ContextExtension to look for org.apache.hc.client5...RequestConfig.
  • Replace usage of the legacy org.apache.http.protocol.HTTP constant with org.apache.hc.core5.http.HttpHeaders.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
uaa/src/test/java/org/cloudfoundry/identity/uaa/oauth/client/test/OAuth2ContextExtension.java Updates the HttpComponents enablement check to use the HttpClient 5 RequestConfig class name.
server/src/main/java/org/cloudfoundry/identity/uaa/util/UaaHttpRequestUtils.java Removes the legacy HttpCore 4 HTTP import and switches keep-alive header iteration to HttpHeaders.KEEP_ALIVE.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@strehle strehle requested a review from a team April 12, 2026 16:00
@strehle strehle changed the title Fix Apache dependency Fix Apache Http Client dependency Apr 12, 2026
@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Apr 12, 2026
@strehle strehle merged commit c6c9074 into develop Apr 12, 2026
40 of 43 checks passed
@strehle strehle deleted the apach5-fix branch April 12, 2026 16:50
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants