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

Handle bad remote changes values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.1.0
    • Component/s: Remote watcher
    • Tags:
    • Sprint:
      nxDrive 11.1.4
    • Story Points:
      1

      Description

      Issue

      We found an "interesting" (or scary) error:

      2019-02-15 11:57:00 81843 123145400414208 DEBUG    urllib3.connectionpool https://SERVER:443 "POST /nuxeo/site/automation/NuxeoDrive.GetChangeSummary HTTP/1.1" 302 0
      2019-02-15 11:57:00 81843 123145400414208 DEBUG    urllib3.connectionpool https://SERVER:443 "GET /nuxeo/site/api/v1/drive/configuration HTTP/1.1" 200 403
      2019-02-15 11:57:00 81843 123145400414208 DEBUG    nuxeo.client       Response from 'https://SERVER/nuxeo/site/automation/NuxeoDrive.GetChangeSummary': '{\n  "delay": 30,\n  "ignored_prefixes": [".", "icon\\r", "thumbs.db", "desktop.ini", "~$"],\n  "ignored_suffixes": [".bak", ".crdownload", ".dwl", ".dwl2", ".lnk", ".lock", ".nxpart", ".part", ".partial", ".swp", ".tmp", "~"],\n  "ignored_files": ["^atmp\\\\d+$"],\n  "log_level_file": "DEBUG",\n  "timeout": 30,\n  "handshake_timeout": 60,\n  "beta_channel": false,\n  "update_check_delay": 3600,\n  "ui": "web"\n}\n' with cookies ...>
      2019-02-15 11:57:00 81843 123145400414208 ERROR    nxdrive.engine.watcher.remote_watcher Unexpected error
      Traceback (most recent call last):
        File "nxdrive/engine/watcher/remote_watcher.py", line 591, in _handle_changes
        File "nxdrive/engine/activity.py", line 118, in func_wrapper
        File "nxdrive/engine/watcher/remote_watcher.py", line 660, in _update_remote_states
        File "nxdrive/engine/watcher/remote_watcher.py", line 624, in _get_changes
      KeyError: 'activeSynchronizationRootDefinitions'
      

      As we can see, the HTTP answer of the GetChangeSummary operation is the one of the server configuration. And so the following error is normal.

      Cause

      The root cause is not found, but the server was hosted in OpenShift and perhaps was there a load balancer.

      Fix

      We need to handle irrevelant changes. A test case would be a very good thing too.

        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 - 4 hours
                4h