Steps to reproduce:
1.Create a root category within the fileplan.
2.Create a child of type cm:folder into the record category created via the RestApi
http://localhost:8080/alfresco/api/-default-/public/gs/versions/1/record-categories/3cc33f34-a1f1-4cb9-916f-ae880b746563/children nodeBodyCreate { "name":"My Record Folder 1", "nodeType":"cm:folder" }
3.Sent the same api request with the autoRename parameter on true
http://localhost:8080/alfresco/api/-default-/public/gs/versions/1/record-categories/3cc33f34-a1f1-4cb9-916f-ae880b746563/children?autoRename=true nodeBodyCreate { "name":"My Record Folder 1", "nodeType":"cm:folder" }
Actual result:
Thre record folder is not created, the response received is:
"statusCode": 409, "briefSummary": "04120131 File or folder My Record Folder 1 already exists",
Expected result:
The record folder should be created having a unique name by adding to the name sent a integer suffix.
Info:
When the type sent is rma:recordFolder or rma:recordCategory the issue is not reproducing.
We convert the cm:folder type into a record folder when we create it inside a record category
- relates to
-
RM-5116 RestApi: autoRename when creating rm types doesn't work
- Done
- links to