Gateway incorrectly reports NotFound when any error encountered reading UnixFS #9064
Closed
3 tasks done
Labels
kind/bug
A bug in existing code (including security flaws)
P2
Medium: Good to have, but can wait until someone steps up
topic/gateway
Topic gateway
Milestone
Checklist
Installation method
built from source
Version
Config
No response
Description
When serving a UnixFS file the gateway will return a NotFound error whenever any error was encounted reading the UnixFS dag.
See https://github.com/ipfs/go-ipfs/blob/862ce6bb8f6ce24b91ed3dc59e7406faed34f583/core/corehttp/gateway_handler_unixfs.go#L25
The gateway should distinguish between missing nodes, transient network errors and invalid paths and give appropriate HTTP responses for each
It's possible that #8924 may be related
The text was updated successfully, but these errors were encountered: