Uploaded image for project: 'Records Management'
  1. Records Management
  2. RM-5148

Creating a child of type cm:folder with autoRename on true into a record category/unfiled container with the same name as existing one doesn't work

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: record ingestion (benchmark)
    • Fix Version/s: None
    • Component/s: REST API
    • Labels:
    • Bug Priority:
      Category 1
    • Sprint:
      Flamebird 12 - Ventriloquist
    • Story Points:
      1

      Description

      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

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  rsutu Rodica Sutu
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel