Title: `options` map modified directly · Issue #383 · cloudinary/cloudinary_java · GitHub
Open Graph Title: `options` map modified directly · Issue #383 · cloudinary/cloudinary_java
X Title: `options` map modified directly · Issue #383 · cloudinary/cloudinary_java
Description: 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 ...
Open Graph Description: 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, ...
X Description: 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, ...
Opengraph URL: https://github.com/cloudinary/cloudinary_java/issues/383
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`options` map modified directly","articleBody":"## Describe the bug in a sentence or two.\nWhen passing in an immutable map to `Uploader.uploadLarge` it errors out because the method [tries to update](https://github.com/cloudinary/cloudinary_java/blob/master/cloudinary-core/src/main/java/com/cloudinary/Uploader.java#L147) the same instance that was passed in to it.\nAFAICS, 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.\n\n## Issue Type (Can be multiple)\n[ ] Build - Can’t install or import the SDK\n[ ] Performance - Performance issues\n[x] Behaviour - Functions aren’t working as expected (Such as generate URL)\n[ ] Documentation - Inconsistency between the docs and behaviour\n[ ] Other (Specify)\n\n## Steps to reproduce\nUse an immutable map as options for `Uploader.uploadLarge` when file is a `java.util.File`.\n\n## Versions and Libraries (fill in the version numbers)\nCloudinary Java SDK version - 1.39.0\n\n","author":{"url":"https://github.com/janosmeszaros","@type":"Person","name":"janosmeszaros"},"datePublished":"2025-07-17T13:54:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/383/cloudinary_java/issues/383"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:566bf081-d7a9-6304-7088-ebb26787e736 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A104:126966:2E1AAFC:3DE1891:697C66F2 |
| html-safe-nonce | 49a9a58ce100ade7a02525a708f5351b5b2b36a134956f06f0fc75d7464eb3ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTA0OjEyNjk2NjoyRTFBQUZDOjNERTE4OTE6Njk3QzY2RjIiLCJ2aXNpdG9yX2lkIjoiNDQwNTAxNzI2MTk3NTAzNzY4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6df175f152af7559caaec8425fd387e062d744c1b257ac41dc0324879d05b96b |
| hovercard-subject-tag | issue:3239691674 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudinary/cloudinary_java/383/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1166a382e6a23a6db2e03603d85f35e7e4b5cdb2e5ab186ac10f2d85621480c/cloudinary/cloudinary_java/issues/383 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1166a382e6a23a6db2e03603d85f35e7e4b5cdb2e5ab186ac10f2d85621480c/cloudinary/cloudinary_java/issues/383 |
| og:image:alt | 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, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | janosmeszaros |
| hostname | github.com |
| expected-hostname | github.com |
| None | da4f0ee56809799586f8ee546b27f94fe9b5893edfbf87732e82be45be013b52 |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudinary/cloudinary_java git https://github.com/cloudinary/cloudinary_java.git |
| octolytics-dimension-user_id | 1460763 |
| octolytics-dimension-user_login | cloudinary |
| octolytics-dimension-repository_id | 6179800 |
| octolytics-dimension-repository_nwo | cloudinary/cloudinary_java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 6179800 |
| octolytics-dimension-repository_network_root_nwo | cloudinary/cloudinary_java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 787d8d274e314f52ce6d846c7581f9476d8dc736 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width