`options` map modified directly

Offen
#383 3 Kommentare 1 Reaktion 1 zugewiesene Person Auf GitHub ansehen

@adimiz1 arbeitet bereits daran.

Seit 21.7.2025.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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

Vorherrschende Sprache
Java
Sterne
176
Forks
113
Ø Merge
9 T. 20 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus cloudinary/cloudinary_java

Alle Issues in cloudinary/cloudinary_java

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.