anancarv / python-artifactory

Typed interactions with the Jfrog Artifactory REST API
MIT License
60 stars 51 forks source link

Incorrect Property list value when deploy with properties #201

Open ppirooznia opened 1 month ago

ppirooznia commented 1 month ago

Describe the bug If one deploys an artifact like this:

client.artifacts.deploy(artifact_dir, artifact_path, {"prop1": ["value"], "prop2": ["value1", "value2", "etc"]})

The result for prop2 is incorrectly one single string:

{
  "properties" : {
    "prop1" : [ "value" ],
    "prop2" : [ "value1,value2,etc" ]
  },
  "uri" : "xxx"
}

Expected behavior

{
  "properties" : {
    "prop1" : [ "value" ],
    "prop2" : [ "etc", "value1", "value2" ]
  },
  "uri" : "xxx"
}

**This works correctly with client.artifacts.set_properties***

Environment: