Search code examples
sap-cloud-sdk

Plans to update s4hana-connectivity to support Apache Http Client 5?


We currently upgrade our project to use Spring 6 & Spring Boot 3. We face some issues with the s4hana-connectivity dependency as it is still relying on org.apache.httpcomponents » httpclient:4.5.14. Are there any plans to upgrade to org.apache.httpcomponents.client5 » httpclient5:5.2.1 yet ?

Since Cloud SDK in its newest version should support Spring 6, I would have expected that the s4hana-connectivity package runs on Apache HTTP Client 5


Solution

  • Correct, SAP Cloud SDK currently only supports Apache HttpClient 4 as HTTP client library. Luckily you can have Apache HttpClient 4 and 5 active in your class path, at the same time.

    This means, from SAP Cloud SDK perspective technically we see no immediate need for a fix or a workaround.

    However, we are considering support for additional HTTP client libraries (e.g. Apache HttpClient 5) in the future with next major release(s). If you want to be considered stakeholder and future beta tester for this feature request, please let me know. Though, currently there is no schedule aligned.