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

Make LocalClient.exists() return False on any OSError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.1.0
    • Component/s: Local client

      Description

      Found by Sentry during the test test_long_file_name():

      OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '\\\\?\\C:\\Jenkins\\workspace\\Drive_FT-drive_master-CUACR5UOIAO62W7K2CAAQ7UISS5UUL3SF5V2PSVOUZC4CRBQLRIA\\tmp\\tmpzhclfi33drive-1\\Nuxeo Drive\\Nuxeo Drive Test Workspace\\FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.txt'
        File "nxdrive\engine\processor.py", line 263, in _execute
          sync_handler(doc_pair)
        File "nxdrive\engine\processor.py", line 1129, in _synchronize_remotely_created
          if not self.local.exists(doc_pair.local_path):
        File "nxdrive\client\local_client.py", line 621, in exists
          raise exc
        File "nxdrive\client\local_client.py", line 615, in exists
          return self.abspath(ref).exists()
        File "pathlib.py", line 1336, in exists
          self.stat()
        File "pathlib.py", line 1158, in stat
          return self._accessor.stat(self)
        File "pathlib.py", line 387, in wrapped
          return strfunc(str(pathobj), *args)
      

      Another error found by Sentry:

      OSError: [Errno 63] File name too long: '/Users/jenkins/tmp/workspace/T-drive_fix-NXBT-2753-maven-HLJCEFT66MGWKTEE6UHTXFEOIJ4TO26MDPRR6GQKPYXLALRLL3VQ/tmp/tmp8azr3x_vdrive-1/Nuxeo Drive/Nuxeo Drive Test Workspace/FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.txt'
        File "nxdrive/engine/processor.py", line 185, in _execute
          if MAC and self.local.exists(doc_pair.local_path):
        File "nxdrive/client/local_client.py", line 621, in exists
          raise exc
        File "nxdrive/client/local_client.py", line 615, in exists
          return self.abspath(ref).exists()
        File "pathlib.py", line 1336, in exists
          self.stat()
        File "pathlib.py", line 1158, in stat
          return self._accessor.stat(self)
        File "pathlib.py", line 387, in wrapped
          return strfunc(str(pathobj), *args)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m