Hi,
I had faced an issue with a curl command when I try to update a specific property in the service.
Imagine I have a service uk.co.test and it contains 2 property param1 and param2.
Now I run the below command to set the value for param1 to set test1 using
curl -u admin:admin -X POST -d "apply=true" -d "propertylist=param1" -d "param1=test1" http://localhost:4502/system/console/configMgr/uk.co.test
No When I try to set the value for param2 to test2 using the below curl, the value for param1 is set to empty.
curl -u admin:admin -X POST -d "apply=true" -d "propertylist=param2" -d "param2=test2" http://localhost:4502/system/console/configMgr/uk.co.test
In order to ensure the old value for param1 is retained, I had to use the below curl, where param1 is passed to the propertylist
curl -u admin:admin -X POST -d "apply=true" -d "propertylist=param2,param1" -d "param2=test2" http://localhost:4502/system/console/configMgr/uk.co.test
I had not faced this issue in the previous version of CQ(5.6.1) to the best of my knowledge, but see this behaviour in 6.2.
Did any one face a similar issue or is this documented somewhere ? Interested to understand what changed.
The below doc, doesn't document this
Views
Replies
Total Likes
check these 2 posts:-
1.curl command - how to set MULTI VALUE property (like String [])
// how to set MULTI VALUE property
2.cURL command to update multivalue property.
//update multiple nodes at a time.
Hope this helps.
~kautuk
Views
Replies
Total Likes
thanks Katuk.
I was unable to update the example with PATCH and make it to work. Tried using PATCH instead of POST in my example above, but it threw an error , saying there is no implementation for PATCH.