SWI-3723 [Snyk] Security upgrade com.squareup.retrofit2:retrofit from 2.11.0 to 3.0.0 #756
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to fix 1 vulnerabilities in the maven dependencies of this project.
Snyk changed the following file(s):
samples/client/petstore/java/retrofit2rx3/pom.xmlThis major upgrade to Retrofit 3.0 introduces significant changes, establishing it as a Kotlin-first library with native support for coroutines.
Breaking Changes:
Call<T>should be converted tosuspendfunctions that return the body type directly. [2, 10]suspendfunctions now throwHttpExceptiondirectly for server errors, requiring updates to error handling logic to usetry-catchblocks. [1, 2]While the library maintains binary compatibility with version 2.x, adopting these new idiomatic patterns requires developer action. [5, 6]
Source: Release notes
Recommendation: Plan for refactoring of Kotlin-based service interfaces to adopt
suspendfunctions and update associated error handling.Vulnerabilities that will be fixed with an upgrade:
SNYK-JAVA-COMSQUAREUPOKHTTP3-13961111
2.11.0->3.0.0Major version upgradeNo Path FoundNo Known ExploitImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.