Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-325

Drive Edit fails if the file is already opened from a previous Drive Edit action under Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.113
    • Component/s: Direct Edit
    • Sprint:
      drive-7.10-1, drive-7.10-2, drive-7.10-3, drive-8.1-1, drive-8.1-3
    • Story Points:
      2

      Description

      With:

      2015-05-05 15:54:45,690 2632 2740 DEBUG    nxdrive.engine.watcher.drive_edit Editing u'NUXEO_WCM_MODULE_User stories.odt' ('nxdriveeditname' xattr: 'NUXEO_WCM_MODULE_User stories.odt')
      2015-05-05 15:54:45,721 2632 2740 ERROR    nxdrive.commandline Error executing 'download_edit': [Error 32] The process cannot access the file because it is being used by another process: u'C:\\Users\\nuxeo\\.nuxeo-drive\\edit\\2cf24762-e86a-4e29-b07e-0819011d41ff\\NUXEO_WCM_MODULE_User stories.odt'
      Traceback (most recent call last):
        File "nuxeo-drive-client\nxdrive\commandline.py", line 481, in handle
        File "nuxeo-drive-client\nxdrive\commandline.py", line 575, in download_edit
        File "nuxeo-drive-client\nxdrive\engine\watcher\drive_edit.py", line 136, in edit
        File "nuxeo-drive-client\nxdrive\engine\watcher\drive_edit.py", line 129, in _prepare_edit
      WindowsError: [Error 32] The process cannot access the file because it is being used by another process: u'C:\\Users\\nuxeo\\.nuxeo-drive\\edit\\2cf24762-e86a-4e29-b07e-0819011d41ff\\NUXEO_WCM_MODULE_User stories.odt'
      

      In this case we could simply focus on the opened file window and not download the file, but that could be a problem if the file has been modified server-side: the locally edited file will override the remote one.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: