Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19564

REST API: 500 when trying to update a record with PUT /nodes/{nodeId}/content

    Details

    • Bug Priority:
      Category 3

      Description

      Steps to reproduce:

      1. Declare a file as Record
      2. 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.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  dungureanu Denis Ungureanu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel