[abfs] Specify the username in upload requests
@@ -26,7 +26,7 @@ else:
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.files.uploadhandler import FileUploadHandler, SkipFile, StopFutureHandlers, StopUpload, UploadFileException
-from desktop.lib import fsmanager
+from desktop.lib.fsmanager import get_client
from azure.abfs.__init__ import parse_uri
from azure.abfs.abfs import ABFSFileSystemException
@@ -113,7 +113,7 @@ class ABFSFileUploadHandler(FileUploadHandler):
return None
def _get_abfs(self, request):
- fs = fsmanager.get_client(fs='abfs')
+ fs = get_client(fs='abfs', user=request.user.username)
if not fs:
raise ABFSFileUploadError(_("No ABFS filesystem found"))
