From 9c8f230793b1d5355c471d8e33a5b202b5307b27 Mon Sep 17 00:00:00 2001 From: Rodica Sutu Date: Wed, 4 Jan 2017 09:21:59 +0200 Subject: [PATCH] revert some unintended changes --- .../rm/community/requests/igCoreAPI/FilePlanComponentAPI.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/igCoreAPI/FilePlanComponentAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/igCoreAPI/FilePlanComponentAPI.java index e0ee81edfd..cdd8530dc1 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/igCoreAPI/FilePlanComponentAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/igCoreAPI/FilePlanComponentAPI.java @@ -271,7 +271,9 @@ public class FilePlanComponentAPI extends RMModelRequest } builder.addMultiPart("filedata", recordContent, ContentType.BINARY.name()); + /* + * RestWrapper adds some headers which break multipart/form-data uploads and also assumes json POST requests. * Upload the file using RestAssured library. */ Response response = given()