Setting multivalue properties w/ GUI (v4.2.2)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting multivalue properties w/ GUI (v4.2.2)

dan.j.marques@gmail.com
I'm using v 4.2.2 of Artifactory(Pro).

I can't figure out how to set a property to have multiple values using the GUI.  If I use semicolon as a separator, it appears on the GUI as if there are multiple values (see attached screenshot), but when I retrieve them via the API, it is a single value:

{
  "properties" : {
    "myProp" : [ "ignore" ],
    "test" : [ "hello;goodbye" ]
  },
  "uri" : "http://xxxx/artifactory/api/storage/libs-release-local/com/xxx/yyy"
}



------------------------------------------------------------------------------

_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

artifactory_multivalue.png (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Setting multivalue properties w/ GUI (v4.2.2)

itamarb
Hi Dan,

Thank you for reporting this.

There is an open issue regarding this.
Currently, you can only use the REST API to upload multi value properties. You have to use a comma separator in order for this to work correctly.
i.e:
curl -X PUT -uadmin:password "http://localhost:8081/artifactory/api/storage/libs-release-local/org/itamarb/test/test.txt?properties=test=1,2,3"

HTH,
Itamar