`options` map modified directly

Đang mở
#383 3 bình luận 1 reaction 1 người được giao Xem trên GitHub

@adimiz1 đang làm issue này rồi.

Từ ngày 21/7/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Describe the bug in a sentence or two.

When passing in an immutable map to Uploader.uploadLarge it errors out because the method tries to update the same instance that was passed in to it.
AFAICS, in most places a defensive copy is made from the options map, but not here. It caused issues for us as we are using the lib from Clojure interop, and by default, all the collections there are immutable.

Issue Type (Can be multiple)

[ ] Build - Can’t install or import the SDK
[ ] Performance - Performance issues
[x] Behaviour - Functions aren’t working as expected (Such as generate URL)
[ ] Documentation - Inconsistency between the docs and behaviour
[ ] Other (Specify)

Steps to reproduce

Use an immutable map as options for Uploader.uploadLarge when file is a java.util.File.

Versions and Libraries (fill in the version numbers)

Cloudinary Java SDK version - 1.39.0

Ngôn ngữ chính
Java
Star
176
Fork
113
Merge trung bình
9 ngày 20 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudinary/cloudinary_java

Tất cả issue của cloudinary/cloudinary_java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.