File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -196,14 +196,8 @@ It accepts two values:
196196
197197When not specified a gateway implementation MUST assume ` n ` .
198198
199- :::note Notes for implementers
200-
201- A ` skip-raw-blocks=y ` request for a content path with ` raw ` root CID does not
202- make sense and SHOULD NOT be sent by clients.
203-
204- A Gateway SHOULD return HTTP error 400 Bad Request
205-
206- :::
199+ A Gateway MUST return HTTP error 400 Bad Request when ` skip-raw-blocks=y ` is
200+ sent for a content path with a root CID with the ` raw ` multicodec.
207201
208202# HTTP Response
209203
Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ This IPIP does not impact security model of trustless gateway.
152152TODO: update below section with CIDs or CARs from conformance tests
153153
154154Scenarios we should check:
155+ - [ ] request for ` /ipfs/cid ` where CID has ` raw ` codec MUST return HTTP 400 (Bad Request)
155156- [ ] reuse existing UnixFS DAG that has raw-leaves, request it with
156157 ` skip-raw-blocks=n ` , confirm the response includes expected raw leaves' CIDs
157158- [ ] create a new CAR fixture that only have non-raw blocks. Request it with
You can’t perform that action at this time.
0 commit comments