-
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
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.