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

Deleting a local folder while synchronizing its children (up or down) crashes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 2.0.0522
    • Component/s: None
    • Backlog priority:
      350
    • Sprint:
      Sprint Drive 7.2-2

      Description

      There are several cases:

      • Deleting a local folder while its children are being created locally (downstream sync), causes the following:
        2013-02-25 11:58:54,141 3816 140285974947584 ERROR    nxdrive.synchronizer Failed to sync LastKnownState<local_folder=u'Nuxeo Drive', local_path=None, remote_name=u'JUCParis 2012 Nuxeo.v0.pdf', local_state=u'unknown', remote_state=u'created'>
        Traceback (most recent call last):
          File "/usr/local/lib/python2.7/dist-packages/nxdrive/synchronizer.py", line 757, in synchronize
            self.synchronize_one(pair_state, session=session)
          File "/usr/local/lib/python2.7/dist-packages/nxdrive/synchronizer.py", line 456, in synchronize_one
            local_info, remote_info)
          File "/usr/local/lib/python2.7/dist-packages/nxdrive/synchronizer.py", line 551, in _synchronize_remotely_created
            content=remote_client.get_content(doc_pair.remote_ref))
          File "/usr/local/lib/python2.7/dist-packages/nxdrive/client/local_client.py", line 157, in make_file
            with open(os_path, "wb") as f:
        IOError: [Errno 2] Aucun fichier ou dossier de ce type: u'/home/ataillefer/Nuxeo Drive/Test Joe/confs/Jenkins/JUCParis 2012 Nuxeo.v0.pdf'
        
      • Deleting a local file or a folder while it is created remotely (upstream sync):
        2013-02-25 12:01:49,874 3816 140285974947584 ERROR    nxdrive.synchronizer Failed to sync LastKnownState<local_folder=u'Nuxeo Drive', local_path=u'/Test Joe/organisation/retour_BD.txt', remote_name=None, local_state=u'deleted', remote_state=u'unknown'>
        Traceback (most recent call last):
          File "/usr/local/lib/python2.7/dist-packages/nxdrive/synchronizer.py", line 757, in synchronize
            self.synchronize_one(pair_state, session=session)
          File "/usr/local/lib/python2.7/dist-packages/nxdrive/synchronizer.py", line 453, in synchronize_one
            doc_pair.pair_state, doc_pair)
        RuntimeError: ('Unhandled pair_state: %r for %r', u'unknown', LastKnownState<local_folder=u'Nuxeo Drive', local_path=u'/Test Joe/organisation/retour_BD.txt', remote_name=None, local_state=u'deleted', remote_state=u'unknown'>)
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ataillefer Antoine Taillefer
                Reporter:
                ataillefer Antoine Taillefer
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified