I have been playing around last couple of days with transporting objects via REST and it seems there are still some slight imperfections in this process.
I stumbled upon following issues:
1. If you export a Webservice REST connection which has an authentication method configured but no host, port, realm
the appropriate part of the JSON will look following:
{
"type": "4",
"name": "authMethod",
"value": "Basic"
},
{
"type": "4",
"name": "basicHost",
"value": "Basic"
},
{
"type": "4",
"name": "basicPort",
"value": "Basic"
},
{
"type": "4",
"name": "basicRealm",
"value": "Basic"
},
After import the values will of course be filled accordingly and you end up with Port: Basic etc.
2. If you export a Webservice Rest job which does not override the connectors' uri the following JSON is generated:
{
"type": "2",
"name": "uriOverride",
"value": "false"
}
Which generally would make sense, as false means you don't do it. But to my amazement this field is read directly as a string and you end up overriding your connections uri with "false"
The same issues occur in other fields like:
{
"type": "2",
"name": "resource",
"value": "false"
},
{
"type": "2",
"name": "response_part_0_file",
"value": "false"
},