[Bug]: Giving SSLHandshakeException while executing PATCH command
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
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, java, kubernetes
- Lĩnh vực
- api, infrastructure, testing
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện yêu cầu PATCH trong thiết lập kiểm thử K3S và so sánh với các lệnh gọi namespace và service thành công được nêu trong issue. Theo dõi cách xử lý SSL và chứng chỉ được coreV1Api.patchNamespacedService và PatchUtils.patch sử dụng; hoàn thành khi lệnh PATCH thành công mà không gặp PKIX SSLHandshakeException.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Module
K3S
Testcontainers version
1.20.1
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host Arch
x86
Docker version
Client:
Cloud integration: v1.0.29
Version: 20.10.20
API version: 1.41
Go version: go1.18.7
Git commit: 9fdeb9c
Built: Tue Oct 18 18:28:44 2022
OS/Arch: windows/amd64
Context: default
Experimental: true
Server: Docker Desktop 4.13.1 (90346)
Engine:
Version: 20.10.20
API version: 1.41 (minimum version 1.12)
Go version: go1.18.7
Git commit: 03df974
Built: Tue Oct 18 18:18:35 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.8
GitCommit: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
What happened?
My K3S test container is up and I am able to create namespace, services etc. in it.
V1Service service = new V1Service()
.metadata(new V1ObjectMeta().name(serviceName).annotations(annotations))
.spec(new V1ServiceSpec()
.addPortsItem(new V1ServicePort()
.port(80)
.targetPort(new IntOrString(8080)))
.selector(Collections.singletonMap("app", "my-app"))
.type("ClusterIP"));
api.createNamespacedService(LHTestConstants.NAMESPACE, service).execute();
But when I try to run a PATCH command using the below code it gives a SSLHandshake error:
V1Patch patch = new V1Patch(patchJson);
V1Service patchedService = PatchUtils.patch(
V1Service.class,
() ->
coreV1Api.patchNamespacedService(
serviceName,
namespace,
patch)
.buildCall(null),
V1Patch.PATCH_FORMAT_JSON_PATCH);
Error: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Relevant log output
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Additional Information
No response
- Ngôn ngữ chính
- Java
- Star
- 8.8k
- Fork
- 2k
- Merge trung bình
- 5 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 testcontainers/testcontainers-java
-
[Bug]: withStartupTimeout() changes the startup timeout of all containers that use the default wait strategyCó thể đã có người làm @aymenjamaaoui đã nhận 1 ngày trước. Đang mởtype/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
testcontainers/testcontainers-java#12171 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Enhancement]: Document why singleton containers are required under Spring's test context cachingCó thể đã có người làm @zakaullah075 đã nhận 95 ngày trước. Đang mởtype/enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
testcontainers/testcontainers-java#11967 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Cannot reuse Selenium BrowserWebDriverContainers under LinuxCó thể đã có người làm @kdelay đã nhận 116 ngày trước. Đang mởtype/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
testcontainers/testcontainers-java#11941 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: DockerDesktopClientProviderStrategy is always applicableCó thể đã có người làm @seonwooj0810 đã nhận 165 ngày trước. Đang mởtype/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
testcontainers/testcontainers-java#11829 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Enhancement]: cleanup document after removing junit4 supportCó thể đã có người làm @SJvaca30 đã nhận 173 ngày trước. Đang mởtype/enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
testcontainers/testcontainers-java#11578 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của testcontainers/testcontainers-java
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
yegor256/jping#122 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
SAP/ai-sdk-java#1206 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue insight-module
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
sdlc-pro/spring-lens#606 ·
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 76/100
apache/cloudstack#14719 ·
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 75/100
apache/maven-surefire#3605 ·
Maintainer thường phản hồi trong vòng 1 ngày