Stop using okhttp3.internal

Open Beginner friendly
#2,127 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
java
Domain
api

Research direction

Start with com.microsoft.kiota.http.middleware.RedirectHandler.java and locate its okhttp3.internal references. Check the OkHttp 5 compatibility concern and the referenced OkHttp issue before selecting supported APIs. Done means the middleware no longer uses okhttp3.internal while preserving redirect handling and binary compatibility with newer OkHttp versions.

Written by the indexing model from the issue text.

Description

com.microsoft.kiota.http.middleware.RedirectHandler.java is referencing OkHttp internals from okhttp3.internal. This code is internal, was never part of public API and was removed in OkHttp 5. Please remove references to it to ensure binary compatibility with the newer OkHttp versions. In general, using anything from okhttp3.internal is not advised as OkHttp is planning to restrict access to it, see https://github.com/square/okhttp/issues/9435.

Dominant language
Java
Stars
38
Forks
34
Avg merge
14h 29m
Merged PRs (30d)
22

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/kiota-java

All issues in microsoft/kiota-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.