Skip to content

Commit

Permalink
[fs] Stringify the user to get proper username key
Browse files Browse the repository at this point in the history
  • Loading branch information
romainr committed Jun 8, 2021
1 parent 472cf7f commit c8a3626
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion desktop/core/src/desktop/lib/fsmanager.py
Expand Up @@ -46,7 +46,7 @@
# FIXME: Should we check hue principal for the default user?
# FIXME: Caching via username has issues when users get deleted. Need to switch to userid, but bigger change
def _get_cache_key(fs, identifier, user=_DEFAULT_USER):
return fs + ':' + identifier + ':' + user
return fs + ':' + identifier + ':' + str(user)


def clear_cache():
Expand Down
8 changes: 4 additions & 4 deletions desktop/libs/aws/src/aws/s3/s3connection.py
Expand Up @@ -107,15 +107,15 @@ def make_request(self, method, bucket='', key='', headers=None, data='',
if isinstance(key, Key):
key = key.name
path = self.calling_format.build_path_base(bucket, key)
boto.log.debug('path=%s' % path)
LOG.debug('path=%s' % path)
auth_path = self.calling_format.build_auth_path(bucket, key)
boto.log.debug('auth_path=%s' % auth_path)
LOG.debug('auth_path=%s' % auth_path)
host = self.calling_format.build_host(self.server_name(), bucket)
if query_args:
path += '?' + query_args
boto.log.debug('path=%s' % path)
LOG.debug('path=%s' % path)
auth_path += '?' + query_args
boto.log.debug('auth_path=%s' % auth_path)
LOG.debug('auth_path=%s' % auth_path)

params = {}
http_request = self.build_base_http_request(method, path, auth_path,
Expand Down

0 comments on commit c8a3626

Please sign in to comment.