Skip to content

Commit 5e57cc0

Browse files
authored
Merge pull request #593 from sudo-bmitch/pr-blob-put-invalid-range
Clarify that 416 is valid on a blob put
2 parents aa0c00b + 3cafdf4 commit 5e57cc0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spec.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ Location: <blob-location>
413413

414414
Here, `<blob-location>` is a pullable blob URL.
415415

416+
If the final chunk is uploaded out of order, the registry MUST respond with a `416 Requested Range Not Satisfiable` code.
417+
416418
---
417419

418420
To get the current status after a 416 error, issue a `GET` request to a URL `<location>` <sup>[end-13](#endpoints)</sup>.
@@ -816,7 +818,7 @@ This endpoint MAY be used for authentication/authorization purposes, but this is
816818
| end-4a | `POST` | `/v2/<name>/blobs/uploads/` | `202` | `404` |
817819
| end-4b | `POST` | `/v2/<name>/blobs/uploads/?digest=<digest>` | `201`/`202` | `404`/`400` |
818820
| end-5 | `PATCH` | `/v2/<name>/blobs/uploads/<reference>` | `202` | `404`/`416` |
819-
| end-6 | `PUT` | `/v2/<name>/blobs/uploads/<reference>?digest=<digest>` | `201` | `404`/`400` |
821+
| end-6 | `PUT` | `/v2/<name>/blobs/uploads/<reference>?digest=<digest>` | `201` | `404`/`400`/`416` |
820822
| end-7 | `PUT` | `/v2/<name>/manifests/<reference>` | `201` | `404`/`413` |
821823
| end-8a | `GET` | `/v2/<name>/tags/list` | `200` | `404` |
822824
| end-8b | `GET` | `/v2/<name>/tags/list?n=<integer>&last=<tagname>` | `200` | `404` |

0 commit comments

Comments
 (0)