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

Changing cm:name with REST API /nodes/{nodeId} does not update Primary Path

    Details

    • Bug Priority:
      Category 2
    • ACT Numbers:

      00992198, 00994331, 00982715, 00981755, 00997728

    • Premier Customer:
      Yes
    • Prioritization Score:
      5.425
    • Epic Link:

      Description

      Problem Description:

      Using the REST API to update the cm:name of a folder does not also update the Primary Path associated with the node.  If cm:name is changed using SHARE then the Primary Path is updated.

      When the Primary Path is not updated, this can lead to problems with searches.

      Reproduction Steps:

      1/. Install OOTB ACS v5.2.4.1

      2/. Create a new site 'josie-site'

      3/. Create a nested folder structure under josie-site: folder1 -> folder2 -> folder3

      4/. Add a file 'testfile1' to folder3

      5/. Check folder1 properties in the Node Browser (see attached: folder1 properties.png)

      6/. Check 'testfile1' properties in the Node Browser (see attached: testfile1 properties.png)

      7/. Search for testfile1 in the Node Browser:

      +PATH:"app:company_home/st:sites/cm:josie-site/cm:documentLibrary/cm:folder1/cm:folder2/cm:folder3/cm:testfile1"

      The file is found.

      8/. Using the REST API, change folder name (cm:name) to '1redlof'

      http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/0aca470c-fb57-4db5-84b7-55375d237385

      {
        "properties":
        {     "cm:name":"1redlof"   }
      }

      9/. Check '1redlof' properties in the Node Browser (see attached: 1redlof properties.png)

      10/. Check 'testfile1' properties in the Node Browser (see attached: testfile1 properties-2.png)

      11/. Search for testfile1 in the Node Browser:

      +PATH:"app:company_home/st:sites/cm:josie-site/cm:documentLibrary/cm:1redlof/cm:folder2/cm:folder3/cm:testfile1"

      The file is not found.

      +PATH:"app:company_home/st:sites/cm:josie-site/cm:documentLibrary/cm:folder1/cm:folder2/cm:folder3/cm:testfile1"

      The file is found

      Observed Behaviour:

      When updating the cm:name, the Primary Path is not changed.

      Expected Behaviour:

      Changing cm:name should also update the Primary Path.

       

      NOTE: This appears similar to MNT-19456.

        Attachments

        1. 1redlof properties.PNG
          1redlof properties.PNG
          49 kB
        2. folder1 properties.PNG
          folder1 properties.PNG
          52 kB
        3. testfile1 properties.PNG
          testfile1 properties.PNG
          52 kB
        4. testfile1 properties-2.png
          testfile1 properties-2.png
          52 kB

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs (Inactive)
                  Reporter:
                  pbateman Paul Bateman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel