HUE-9073 [fs] Avoid missing user argument in _get_client_cached

Review Request #14475 — Created Nov. 12, 2019 and submitted

romain
hue
master
HUE-9073
hue
jgauthier, johan, ranade, romain, weixia, yingc
commit 1d65e642b90436d896e093765702b261fe3498b1
Author: Romain <romain.rigaux@gmail.com>
Date:   Tue Nov 12 14:24:08 2019 -0800

    HUE-9073 [fs] Avoid missing user argument in _get_client_cached
    
    File "/home/romain/projects/hue/build/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
        response = get_response(request)
      File "/home/romain/projects/hue/build/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
        response = self._get_response(request)
      File "/home/romain/projects/hue/build/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 178, in _get_response
        response = middleware_method(request, callback, callback_args, callback_kwargs)
      File "/home/romain/projects/hue/desktop/core/src/desktop/middleware.py", line 132, in process_view
        request.fs = fsmanager.get_filesystem(request.fs_ref)
      File "/home/romain/projects/hue/desktop/core/src/desktop/lib/fsmanager.py", line 145, in get_filesystem
        return ProxyFS(pdict, get_default_schema(), name)
      File "/home/romain/projects/hue/desktop/core/src/desktop/lib/fs/proxyfs.py", line 52, in __init__
        self._default_fs = filesystems_dict[self._default_scheme](name)
    TypeError: _get_client_cached() missing 1 required positional argument: 'user'

:100644 100644 8697a5e305 6a4b784444 M	desktop/core/src/desktop/lib/fs/proxyfs.py

Any better way?

jgauthier
  1. Ship It!
  2. 
      
romain
Review request changed

Status: Closed (submitted)

Loading...