-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix manifest unknown error code as specs #16516
fix manifest unknown error code as specs #16516
Conversation
a1cd8ac
to
30ed65f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any idea where it might impact existing users, who are no expecting NOT_FOUND
Codecov Report
@@ Coverage Diff @@
## main #16516 +/- ##
==========================================
- Coverage 67.14% 67.14% -0.01%
==========================================
Files 971 971
Lines 105169 105169
Branches 2579 2579
==========================================
- Hits 70618 70612 -6
- Misses 30809 30815 +6
Partials 3742 3742
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…istry/spec/api/#errors-2 Signed-off-by: Alessandro Manno <alessandro.manno@facile.it>
Signed-off-by: Alessandro Manno <alessandro.manno@facile.it>
f8d8808
to
41d3c7e
Compare
@Vad1mo There were some failed tests, I fixed them |
@Vad1mo do you have any news on this topic? |
Any ETA about this pr? I'm waiting for this one too 😭 |
Any news? 🙏 |
@goharbor/maintainers can we get some 👀 on that issue? |
Hello, any news on this PR ? We're suffering from this problem too and we'd love to see it merged. |
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days. |
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days. |
We, will address this issue internally next PR review. Mon 28th Nov. 2022 |
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days. |
We had internal discussion and verified that with the OCI spec, and cam to the conclusion that the current implementation in Harbor aligns with the OCI spec. The consequence is we are not planning to merge this PR. |
@Vad1mo my understanding was the opposite: the OCI Distribution specs literally say in their Error Codes section
Would you please link here the specs you were referring to? thank you! |
thank you @peelandsee for the reference. Indeed, it looks like there is no error code |
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days. |
commenting on this to avoid auto-close while @Vad1mo complete the check |
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days. |
a brand-new dummy comment avoiding auto-close to let @Vad1mo complete his check |
This change does not make sense, as the NOT_FOUND_CODE is a general 404 failure for the API handlers. This code simply means that the object was not found, and is definitely not meant for manifest unknown errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see the comment.
This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days. |
This PR was closed because it has been stalled for 30 days with no activity. If this PR is still relevant, please re-open a new PR against main. |
Issue link: #16515
Fix error code for manifest unknown following docker api specs,
NOT_FOUND
error code is not supported.Ref: https://docs.docker.com/registry/spec/api/#errors-2
This error code brokes
docker-compose pull --ignore-pull-failures
when images are not available on the registry (docker agent expectsMANIFEST_UNKNOWN
error instead).