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

Drive: deleting server-side a folder under a sync root for userA and registered as a sync root for userB won't delete the folder locally for userA

    XMLWordPrintable

    Details

      Description

      Because the document is adapted as a FileSystemItem by the defaultSyncRootFolderItemFactory when logged as a virtual deletion event in the audit log by the NuxeoDriveFileSystemDeletionListener.

      This is due to the fact that we relax the sync root constraint to allow security update detection, see NXP-13119 and especially https://github.com/nuxeo/nuxeo-drive-server/commit/b1ba6c7

      Thus the id sent to Drive starts with the wrong factory for userA: defaultSyncRootFolderItemFactory instead of defaultFileSystemItemFactory, then the item is not found in the local database when updating remote states, see Synchronizer._update_remote_states:

      doc_pair = session.query(LastKnownState).filter_by(
                      local_folder=server_binding.local_folder,
                      remote_ref=remote_ref).first()
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.