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

Drive: sometimes fails with "AttributeError: 'NoneType' object has no attribute..." in LocalClient._abspath()

    XMLWordPrintable

    Details

    • Backlog priority:
      850

      Description

      Like in this stack trace:

      2014-01-27 09:07:20,437 1396 9060 ERROR    nxdrive.synchronizer Failed to sync LastKnownState<local_folder=u'Nuxeo Drive', local_path=u'/path/to/my/file', remote_name=u'file', local_state=u'synchronized', remote_state=u'deleted', pair_state=u'remotely_deleted'>, blacklisting doc pair for 300 seconds
      Traceback (most recent call last):
        File "nuxeo-drive-client\nxdrive\synchronizer.py", line 1122, in synchronize
        File "nuxeo-drive-client\nxdrive\synchronizer.py", line 657, in synchronize_one
        File "nuxeo-drive-client\nxdrive\synchronizer.py", line 863, in _synchronize_remotely_deleted
        File "nuxeo-drive-client\nxdrive\synchronizer.py", line 212, in _delete_with_descendant_states
        File "nuxeo-drive-client\nxdrive\synchronizer.py", line 212, in _delete_with_descendant_states
        File "nuxeo-drive-client\nxdrive\synchronizer.py", line 236, in _delete_with_descendant_states
        File "nuxeo-drive-client\nxdrive\client\local_client.py", line 186, in exists
        File "nuxeo-drive-client\nxdrive\client\local_client.py", line 235, in _abspath
      AttributeError: 'NoneType' object has no attribute 'startswith'
      

      Possible fxes:

      • Defensive coding on ref parameter in LocalClient._abspath
      • Avoid this case as it should not happen, by handling it in the caller: Synchronizer._delete_with_descendant_states, probably at line 236. This is the better solution.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour Time Not Required
                  1h

                    PagerDuty

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