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

Google docs are synchronized by Nuxeo Drive making the remote scan fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.10-HF03, 8.1
    • Component/s: Nuxeo Drive
    • Sprint:
      drive-8.1-2

      Description

      Because the file system item sent by the server doesn't have any digestAlgorithm.

      2015-12-16 14:59:06,926 5751 139672992487168 DEBUG    nxdrive.engine.watcher.remote_watcher Remote full scan
      2015-12-16 14:59:07,174 5751 139672992487168 DEBUG    nxdrive.engine.watcher.remote_watcher Remote scanning: /
      2015-12-16 14:59:07,211 5751 139672992487168 DEBUG    nxdrive.engine.watcher.remote_watcher Remote scanning: /GoogleDocs
      2015-12-16 14:59:07,211 5751 139673730422528 DEBUG    nxdrive.wui.application Updated icon state to: transferring
      2015-12-16 14:59:07,288 5751 139672992487168 ERROR    nxdrive.engine.watcher.remote_watcher 'NoneType' object has no attribute 'lower'
      Traceback (most recent call last):
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/engine/watcher/remote_watcher.py", line 335, in _handle_changes
          self._scan_remote()
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/engine/watcher/remote_watcher.py", line 109, in _scan_remote
          self._scan_remote_recursive(from_state, remote_info)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/engine/watcher/remote_watcher.py", line 241, in _scan_remote_recursive
          mark_unknown=False, force_recursion=force_recursion)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/engine/watcher/remote_watcher.py", line 211, in _scan_remote_recursive
          children_info = self._client.get_children_info(remote_info.uid)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/client/remote_filtered_file_system_client.py", line 40, in get_children_info
          fs_item_id)
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/client/remote_file_system_client.py", line 115, in get_children_info
          return [self.file_to_info(fs_item) for fs_item in children]
        File "/home/ataillefer/sources/nuxeo/addons/nuxeo-drive/nuxeo-drive-client/nxdrive/client/remote_file_system_client.py", line 213, in file_to_info
          digest_algorithm = fs_item['digestAlgorithm'].lower().replace('-', '')
      AttributeError: 'NoneType' object has no attribute 'lower'
      

      If the digestAlgorithm is defensively set to None by Drive then we have a CorruptedFile error at download because the download response contains the Google authentication HTML page.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: