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

Local move randomly not detected as a move but a deletion + creation under Windows (and Linux)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3.1107
    • Fix Version/s: 2.0.818
    • Component/s: Synchronizer, Tests, Watchdog

      Description

      See the difference between:

      • A successful build: http://qa.nuxeo.org/jenkins/view/Drive/job/FT-nuxeo-drive-master-windows/288/consoleFull
        Where we can see:
        Detected a file movement LastKnownState<local_folder=u'Nuxeo Drive', local_path=u'/Nuxeo Drive Test Workspace/Original Folder 1', remote_name=u'Original Folder 1', local_state='deleted', remote_state=u'synchronized', pair_state='locally_deleted', error_count=0>
        

        which leads to a remote move as expected:

        Moving remote file according to local : LastKnownState<local_folder=u'Nuxeo Drive', local_path=u'/Nuxeo Drive Test Workspace/Original Folder 2/Original Folder 1', remote_name=u'Original Folder 1', local_state=u'moved', remote_state=u'synchronized', pair_state=u'locally_moved', error_count=0>
        
      • A failing build: http://qa.nuxeo.org/jenkins/view/Drive/job/FT-nuxeo-drive-master-windows/289/consoleFull
        12:10:01 [INFO]      [exec] ======================================================================
        12:10:01 [INFO]      [exec] ERROR: test_local_move_folder (nxdrive.tests.test_integration_local_move_and_rename.TestIntegrationLocalMoveAndRename)
        12:10:01 [INFO]      [exec] ----------------------------------------------------------------------
        12:10:01 [INFO]      [exec] Traceback (most recent call last):
        12:10:01 [INFO]      [exec]   File "C:\Jenkins\workspace\FT-nuxeo-drive-master-windows\nuxeo-drive-client\nxdrive\tests\test_integration_local_move_and_rename.py", line 269, in test_local_move_folder
        12:10:01 [INFO]      [exec]     remote_folder_info = remote_client.get_info(original_folder_1_uid)
        12:10:01 [INFO]      [exec]   File "nuxeo-drive-client\nxdrive\client\remote_document_client.py", line 96, in get_info
        12:10:01 [INFO]      [exec] NotFound: Could not find '5843594b-394a-4ef5-8064-6475be63622e' on 'http://localhost:8080/nuxeo/'
        

        We can see no Detected a file movement ...
        => We get a remote deletion which is not expected:

        Deleting or unregistering remote document 'Original Folder 1' (defaultFileSystemItemFactory#default#5843594b-394a-4ef5-8064-6475be63622e)
        

        then a call to:

        http://localhost:8080/nuxeo/site/automation/NuxeoDrive.Delete
        

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: