feat(by-hash): allow /by-hash even if blob is trashed

- permit reuse of blob where file is trashed (by-hash and chunked)
    - add hurl test on /api/files/by-hash
    - add anti enumeration of blob (404 is always blob_not_owned_by_caller)
This commit is contained in:
Edouard Vanbelle
2026-06-16 22:29:51 +02:00
parent 9519c1fee2
commit 68abb891d7
5 changed files with 350 additions and 13 deletions
+2 -1
View File
@@ -155,7 +155,8 @@ hurl --variables-file "$API_DIR/test.env" --file-root "$REPO_ROOT/tests" --test
"$API_DIR/nc_admin_views_other_user.hurl" \
"$API_DIR/admin_user_ops.hurl" \
"$API_DIR/chunked_upload_cap.hurl" \
"$API_DIR/nc_auth_failures.hurl"
"$API_DIR/nc_auth_failures.hurl" \
"$API_DIR/dedup_create.hurl"
#bash "$API_DIR/dedup_bulk_upload.sh"