Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-19126

Drive: Fix incorrect 'fileSystemItemName' returned when cluster mode enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0-HF27, 7.10-HF06, 8.1
    • Fix Version/s: 6.0-HF29, 7.10-HF07, 8.2
    • Component/s: Nuxeo Drive

      Description

      In the following scenario: 2 Drive clients are connected to different server nodes are accessing the same document.
      The document is moved by one of the 2 clients , if the GetChangeSummary for the second one arrives on the server before the cluster invalidation delay. the old title is returned to this client as the .'fileSystemItemName' .

      This happens for the following reason:

      • in ES the event is registered correctly
      • the documentMoved is picked up by the AuditChangeFinder
      • the fileSystem properties (including the fileSystemItemName) returned to the client are actually initialized from the document model ex in DocumentBackedFolderItem ( see initialize method), so if the thread returning the documentMoved event doesn't have the updated doc model it will return it to the client with the wrong title ( New Folder);

      Example:

      In ES:
      "audit","entry","2091501","13.413756","logEntry","eventDocumentCategory","41","project","/7f95b97f-8978-4d92-8500-f81fd3163609/UserWorkspaces/41/ABC","Folder","a590937d-d30a-4448-aaee-44973fe2ca13","documentMoved","default","2016-02-18T07:21:06.398Z","2091501","2016-02-18T07:21:06.494Z",,,"default:34310c17-f584-4c68-b72f-7fb6d2f99b1a","7f95b97f-8978-4d92-8500-f81fd3163609","ABC","ABC","/7f95b97f-8978-4d92-8500-f81fd3163609/UserWorkspaces/41"

      But Drive gets:
      {"eventId":"documentMoved","eventDate":1455780066398,"repositoryId":"default","fileSystemItem":

      {"canCreateChild":true,"creationDate":1455780049200,"folder":true,"creator":"41","canDelete":true,"canRename":true,"lastContributor":"41","parentId":"userSyncRootParentFactory#default#34310c17-f584-4c68-b72f-7fb6d2f99b1a","lastModificationDate":1455780049200,"lockInfo":null,"name":"New folder","id":"defaultFileSystemItemFactory#default#a590937d-d30a-4448-aaee-44973fe2ca13","path":"/org.nuxeo.drive.hierarchy.permission.factory.PermissionTopLevelFactory#/userSyncRootParentFactory#default#34310c17-f584-4c68-b72f-7fb6d2f99b1a/defaultFileSystemItemFactory#default#a590937d-d30a-4448-aaee-44973fe2ca13","userName":"41"}

      ,"docUuid":"a590937d-d30a-4448-aaee-44973fe2ca13","fileSystemItemId":"defaultFileSystemItemFactory#default#a590937d-d30a-4448-aaee-44973fe2ca13","fileSystemItemName":"New folder"},

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: