From 0aa2815dd7f8f4891160bdd441b2b86bf4e5eff3 Mon Sep 17 00:00:00 2001 From: Konrad Rokicki Date: Thu, 18 Dec 2025 08:18:59 -0500 Subject: [PATCH] fix the error response to make neuroglancer happy when loading n5s --- fileglancer/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileglancer/app.py b/fileglancer/app.py index b4e92bb4..738ce138 100644 --- a/fileglancer/app.py +++ b/fileglancer/app.py @@ -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: