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

Fix datetime.fromtimestamp() erronously throws an OSError on Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.1
    • Component/s: Framework
    • Environment:
      Windows

      Description

      On Python 3.6, and on Windows only, datetime.fromtimestamp() erronously throws an OSError on Windows for values between 0 and 86400.

      Traces:

      Traceback (most recent call last):
        File "nxdrive\manager.py", line 593, in bind_engine
          self, engine_def, binder=binder)
        File "nxdrive\engine\engine.py", line 112, in __init__
          self.bind(binder)
        File "nxdrive\engine\engine.py", line 760, in bind
          self._check_root()
        File "nxdrive\engine\engine.py", line 781, in _check_root
          self._add_top_level_state()
        File "nxdrive\engine\engine.py", line 834, in _add_top_level_state
          remote_info = self.remote.get_filesystem_root_info()
        File "nxdrive\client\remote_client.py", line 271, in get_filesystem_root_info
          return self.file_to_info(toplevel_folder)
        File "nxdrive\client\remote_client.py", line 480, in file_to_info
          fs_item['lastModificationDate'] // 1000)
      OSError: [Errno 22] Invalid argument
      

      This is a known bug:

      The temporary fix is done in Remote.file_to_info(), this ticket is just a reminder to remove it when the bug will be fixed upstream.

        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 - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h

                    PagerDuty

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