-
Type:
Bug
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: 5.2
-
Component/s: ACS REST API
-
Labels:None
-
Bug Priority:
Steps to reproduce:
- Declare a file as Record
- Try to update the content of that file
PUT /nodes/{nodeId}/content
Actual result:
Returned status code is 500:
{ "error": { "errorKey": "framework.exception.ApiDefault", "statusCode": 500, "briefSummary": "04074707 Failed to set content property on stream closure: \n node: workspace://SpacesStore/42ae9272-111d-43e2-9a84-b11d3cfcdcfc\n property: {http://www.alfresco.org/model/content/1.0}content\n writer: ContentAccessor[ contentUrl=store://2018/5/7/12/28/9845eaa2-3c3c-48a5-99af-b0704325bd55.bin, mimetype=image/png, size=41, encoding=UTF-8, locale=en_US]\norg.alfresco.repo.node.integrity.IntegrityException: 04074706 You can't update a record's content property.", "stackTrace": "For security reasons the stack trace is no longer displayed, but the property is kept for previous versions", "descriptionURL": "https://api-explorer.alfresco.com", "logId": "3f9a7ea3-e4f0-470e-904e-62bc17789c72" } }
Expected result:
Returned status code should be 403 with a proper message.
- shadowed by
-
REPO-3533 MNT-19564: REST API: 500 when trying to update a record with PUT /nodes/{nodeId}/content
- Review