conformance: fix http status code for cross-repository mounting

This commit is contained in:
Shivam Mishra
2021-01-26 14:26:18 -08:00
parent 9969ba0867
commit 2b7b57313a
4 changed files with 122 additions and 9 deletions
+3 -2
View File
@@ -636,9 +636,10 @@ func (is *ImageStore) NewBlobUpload(repo string) (string, error) {
}
u := uuid.String()
blobUploadPath := is.BlobUploadPath(repo, u)
file, err := os.OpenFile(blobUploadPath, os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 0600)
blobUploadPath := is.BlobUploadPath(repo, u)
file, err := os.OpenFile(blobUploadPath, os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 0600)
if err != nil {
return "", errors.ErrRepoNotFound
}