microsoft / microsoft/kiota-java

Stop using okhttp3.internal

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

Nobody has claimed this yet.

Dominant language
Java
Stars
38
Forks
34
Avg merge
15h 9m
Merged PRs (30d)
20

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.

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.