OCI SDK Warning: Upload Stream Size Is 0 Bytes — Potential Data Corruption
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
- 35/100
Hướng nghiên cứu
Bắt đầu với phương thức singlePartUpload được cung cấp và vị trí cảnh báo trong JerseyHttpRequest.java:101. Tái hiện quá trình upload đồng thời kiểm tra InputStream và độ dài nội dung, sau đó kiểm tra các phiên bản phụ thuộc của OCI SDK. Công việc được xem là hoàn tất khi xác định được nguyên nhân của cảnh báo zero-byte và ghi lại biện pháp khắc phục đã được xác minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
log
{"timestamp":"2025-07-16T15:00:12.267984423Z","@version":"1","message":"Stream size to upload is 0 bytes, this could potentially lead to data corruption. If this is not intended, please make sure all the OCI SDK dependencies point to the same version","logger":"c.o.b.h.c.jersey.JerseyHttpRequest","thread":"upload-worker-5","level":"WARN","level_value":30000,"commitId":"8c5c308","spanId":"6ce63656-ed29-4c81-a9e2-aa7f7ed0fe77","traceId":"6449a622-b0bc-4ba0-b5cd-938d3cc49109","dmsId":"14a92955-e974-43be-9eaf-97f17161807e","caller_class_name":"com.oracle.bmc.http.client.jersey.JerseyHttpRequest","caller_method_name":"logAvailable","caller_file_name":"JerseyHttpRequest.java","caller_line_number":101}
This is my caller method
private StoreResponse singlePartUpload(InputStream inputStream, String ociObjectPath, StoreRequest request) throws IOException {
// Prepare the PutObjectRequest
PutObjectRequest putObjectRequest = PutObjectRequest.builder()
.namespaceName(namespace)
.bucketName(bucketName)
.objectName(ociObjectPath)
.putObjectBody(inputStream)
.opcMeta(request.getMetadata())
.contentType(request.getContentType())
.contentLength(request.getContentLength())
.build();
// Upload the file to Object Storage
PutObjectResponse putObjectResponse = objectStorageClient.putObject(putObjectRequest);
if (putObjectResponse == null || StringUtils.isBlank(putObjectResponse.getETag())) {
throw new StorageException(OBJECT_STORAGE_ETAG_NOT_FOUND);
} else {
return StoreResponse.builder()
.objectPath(ociObjectPath)
.eTag(putObjectResponse.getETag())
.versionId(putObjectResponse.getOpcContentMd5()) // Not actual versionId, placeholder
.build();
}
}
Can someone help me here.
Thanks
- Ngôn ngữ chính
- Java
- Star
- 243
- Fork
- 171
- Merge trung bình
- 5 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 oracle/oci-java-sdk
-
NoSuchMethodError in the circuit breaker since 3.103.0 when resilience4j 2.x is on the classpathĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
oracle/oci-java-sdk#803 ·
-
Potential token refresh timeout issue in Versions 2.91.0, 2.93.0, and 2.95.0 (Fixed in 2.97.0)Đang mởSDK
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
oracle/oci-java-sdk#788 ·
-
Identity Domains
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
oracle/oci-java-sdk#764 · 3 bình luận ·
-
SDK
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
oracle/oci-java-sdk#726 · 1 bình luận ·
-
Object Storage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
oracle/oci-java-sdk#723 · 1 reaction ·
Tất cả issue của oracle/oci-java-sdk
Issue tương tự
-
enhancement infra
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
5.0.x backport bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
spring-cloud/spring-cloud-function#1569 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parentCó thể đã có người làm @olegz đã nhận hôm nay. Đang mởtask
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
spring-cloud/spring-cloud-stream#3355 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cpan-port area:performance bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#2230 ·
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 76/100