Skip to content

options map modified directly #383

@janosmeszaros

Description

@janosmeszaros

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy