Importing IAR Through Rest API (Curl) Not Working And Not Uploading Any Bytes

(Doc ID 2388921.1)

Last updated on APRIL 26, 2018

Applies to:

Integration Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

On : NA version, Runtime

ACTUAL BEHAVIOR
---------------
Importing iar through REST API (Curl command) is not working.


curl -X GET -u <user>:<pwd> -H "Content-Type:application/json; charset=utf-8" -o ./RSOURCECASEINTERFACE.iar -F "file=@RSOURCECASEINTERFACE.iar;type=application/octet-stream" https://<instance>.integration.us2.oraclecloud.com/icsapis/v2/integrations/RSOURCECASEINTERFACE%7C01.00.0000/archive


% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 594 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

EXPECTED BEHAVIOR
-----------------------
Import should upload the iar successfully and the result should show the number of bytes uploaded.

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Try import an iar using curl
 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms