From 3ef7ae2f820b064297bb21bebaa5746578ff106b Mon Sep 17 00:00:00 2001 From: Sara Aspery Date: Tue, 21 May 2019 13:09:22 +0100 Subject: [PATCH] RM-6832 review updates --- .../org/alfresco/rm/rest/api/files/FilesEntityResource.java | 2 +- .../src/main/webapp/definitions/gs-core-api.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/files/FilesEntityResource.java b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/files/FilesEntityResource.java index 3295fd3095..b63e0451db 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/files/FilesEntityResource.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/files/FilesEntityResource.java @@ -148,7 +148,7 @@ public class FilesEntityResource implements InitializingBean { // Get record folder, if provided NodeRef targetParent = null; - String targetParentId = parameters.getParameter(RMNode.PARAM_PARENT_ID); + final String targetParentId = parameters.getParameter(RMNode.PARAM_PARENT_ID); if (targetParentId != null) { targetParent = apiUtils.lookupAndValidateNodeType(targetParentId, RecordsManagementModel.TYPE_RECORD_FOLDER); diff --git a/rm-community/rm-community-rest-api-explorer/src/main/webapp/definitions/gs-core-api.yaml b/rm-community/rm-community-rest-api-explorer/src/main/webapp/definitions/gs-core-api.yaml index a25735996d..f6e3a390d4 100644 --- a/rm-community/rm-community-rest-api-explorer/src/main/webapp/definitions/gs-core-api.yaml +++ b/rm-community/rm-community-rest-api-explorer/src/main/webapp/definitions/gs-core-api.yaml @@ -1873,14 +1873,14 @@ paths: $ref: '#/definitions/RecordEntry' '400': description: | - Invalid parameter: **fileId** is not a valid format + Invalid parameter: **fileId** is not a valid format or **parentId** is not a valid format '401': description: Authentication failed '403': description: Current user does not have permission to declare a record '404': description: | - **fileId** does not exist + **fileId** does not exist or **parentId** does not exist '422': description: | Model integrity exception: the action breaks system's integrity restrictions