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 a504b9d commit 0ce0c24Copy full SHA for 0ce0c24
databusclient/deploy.py
@@ -8,7 +8,6 @@
8
9
from nextcloudclient.upload import upload_to_nextcloud
10
11
-
12
def deploy_to_databus(
13
metadata,
14
version_id,
@@ -25,6 +24,9 @@ def deploy_to_databus(
25
24
distributions = []
26
counter = 0
27
for filename, checksum, size, url in metadata:
+ # Expect a SHA-256 hex digest (64 chars). Reject others.
28
+ if not isinstance(checksum, str) or len(checksum) != 64:
29
+ raise ValueError(f"Invalid checksum for {filename}: expected SHA-256 hex (64 chars), got '{checksum}'")
30
parts = filename.split(".")
31
if len(parts) == 1:
32
file_format = "none"
0 commit comments