-
Type: Bug
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Core
When calling the CMIS endpoint, all errors are shadowed.
Thus, third-party applications like Nuxeo Drive cannot handle specific errors.
For instance, credentials errors should be forwarded instead of being ignored:
2021-03-12 11:09:31 8458 140202635511616 DEBUG nuxeo.client Calling GET 'https://<HOST>/nuxeo/json/cmis' 2021-03-12 11:09:31 8458 140202635511616 WARNING nuxeo.client Invalid response data when called server_info() Traceback (most recent call last): File "nuxeo/client.py", line 305, in request File "requests/models.py", line 943, in raise_for_status requests.exceptions.HTTPError: 401 Client Error: for url: https://<HOST>/nuxeo/json/cmis During handling of the above exception, another exception occurred: Traceback (most recent call last): File "nuxeo/client.py", line 387, in server_info File "nuxeo/client.py", line 308, in request nuxeo.exceptions.Unauthorized: Unauthorized(401)
In that case, it is required for Drive to know that credentials are bad to alert the user.
- is required by
-
NXDRIVE-2565 Handle invalid credentials when failed to retrieve server information
- Open