We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed8938c commit 3a9e656Copy full SHA for 3a9e656
services/storage/src/simcore_service_storage/utils/utils.py
@@ -1,5 +1,5 @@
1
+import hashlib
2
import logging
-import urllib.parse
3
from pathlib import Path
4
5
import aiofiles
@@ -69,7 +69,8 @@ def is_file_entry_valid(file_metadata: FileMetaData | FileMetaDataAtDB) -> bool:
69
70
71
def create_upload_completion_task_name(user_id: UserID, file_id: StorageFileID) -> str:
72
- return f"upload_complete_task_{user_id}_{urllib.parse.quote(file_id.replace('/', '_'), safe='')}"
+ hash = hashlib.sha256(f"{user_id}_{file_id}").hexdigest()
73
+ return f"upload_complete_task_{hash}"
74
75
76
def is_valid_managed_multipart_upload(upload_id: UploadID | None) -> bool:
0 commit comments