Browse Source

[raz] Update mapping for ABFS list operation (#2965)

Harsh Gupta 3 years ago
parent
commit
6fc577c11e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      desktop/core/src/desktop/lib/raz/raz_client.py

+ 3 - 1
desktop/core/src/desktop/lib/raz/raz_client.py

@@ -210,7 +210,9 @@ class RazClient(object):
 
 
   def handle_adls_req_mapping(self, method, params):
   def handle_adls_req_mapping(self, method, params):
     if method == 'HEAD':
     if method == 'HEAD':
-      access_type = 'get-status' if params.get('action') == 'getStatus' else ''
+      access_type = ''
+      if params.get('action') == 'getStatus' or params.get('resource') == 'filesystem':
+        access_type = 'get-status'
 
 
     if method == 'DELETE':
     if method == 'DELETE':
       access_type = 'delete-recursive' if params.get('recursive') == 'true' else 'delete'
       access_type = 'delete-recursive' if params.get('recursive') == 'true' else 'delete'