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

Changing Document Property using Java Behavior is Not Seen in the Latest Version

    Details

    • Bug Priority:
      Category 3
    • ACT Numbers:

      00859473

    • Premier Customer:
      Yes

      Description

      Problem Description
      ================
      This JIRA has been raised as a follow on from JIRA- MNT-17991. When Java behaviors ("beforeCreateVersion" behavior) is used to change the name (cm:name) of a new version uploaded to repository, the version history in share does not show the new name of
      the document. The code (VersionRevisionPolicy.java and DocRevUtil.java) is attached
      to the JIRA

      The file is renamed using following code in DocRevUtil.java: fileFolderService.rename(masterFile, newName);

      As a result, the name of the file changes in Share document library. However, version history does not contain modified values

      If we compare a node in version2Store and SpacesStore, we can see that SpacesStore contains proper cm:name but version2Store contains unchanged name

      Since we are doing the change in before behavior, then it should be visible also in version2Store.

      Steps to Reproduce
      ================
      1) Deploy the custom java behavior code attached to the JIRA
      2) Upload a document to Share.

      Expected Behavior
      ===============
      The name of the document changes in document library as well as version history

      Observed Behavior
      ===============
      The name of the document changes in document library but not in version history.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kprakash Kavitha Prakash [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel