Make it possible to tell if an OkHttpClient/Interceptor.Chain is using a non-default sslSocketFactory
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start by reading okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt around the field initialization cited in the issue, then follow how Interceptor.Chain.sslSocketFactoryOrNull is exposed and how withSslSocketFactory changes the chain. The issue asks for a way to distinguish a user-provided factory from the default; done means an application interceptor can make that distinction without confusing the default instance with an override.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We would like to know, in an application interceptor, if the user is using a custom SSLSocketFactory, i.e. they called OkHttpClient.Builder.sslSocketFactory or Interceptor.Chain.withSslSocketFactory.
This is because, if the user is using the default SSL Socket Factory, our interceptor can use its own SSL implementation with little risk of contradicting the user's intent. The interceptor should ideally refrain from doing this if the user overrode the option.
Currently this doesn't really seem to be feasible. Indeed, if the user does not specify this option, OkHttp sets the field to a new instance, which means Interceptor.chain.sslSocketFactoryOrNull cannot be compared against null or some default instance.
@yschimke @vkasprov
- Ngôn ngữ chính
- Kotlin
- Star
- 47.1k
- Fork
- 9.3k
- Merge trung bình
- 21 giờ 25 phút
- Pull request đã merge (30 ngày)
- 30
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của lysine-dev/okhttp
-
OkHttp versions 5.4.0+ no longer include baseline-prof.txtCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
lysine-dev/okhttp#9828 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
lysine-dev/okhttp#9817 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Cannot add Content-Length header to a multipart partCó thể đã có người làm @Amir-Golmoradi đã nhận 13 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lysine-dev/okhttp#9814 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
lysine-dev/okhttp#9761 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
lysine-dev/okhttp#9838 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của lysine-dev/okhttp
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
liberation-data/drivine-cypher-spec#67 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
documentation good first issue help wanted P2 roadmap-v4
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
maziyarpanahi/openmed#5425 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OneBusAway/vehicle-positions#250 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
android cleanup good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 86/100