Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fileglancer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def _get_file_proxy_client(sharing_key: str, sharing_name: str) -> Tuple[FilePro
# 1. Properly encoded requests (sharing_name matches DB value of proxied_path.sharing_name)
# 2. Vol-E's unencoded requests (unquote(proxied_path.sharing_name) matches the garbled request value)
if proxied_path.sharing_name != sharing_name and unquote(proxied_path.sharing_name) != sharing_name:
return get_error_response(400, "InvalidArgument", f"Sharing name mismatch for sharing key {sharing_key}", sharing_name), None
return get_error_response(404, "NoSuchKey", f"Sharing name mismatch for sharing key {sharing_key}", sharing_name), None

fsp = db.get_file_share_path(session, proxied_path.fsp_name)
if not fsp:
Expand Down