mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-15 11:21:49 +01:00
fix the landing accessory data (#19661)
Fix the keywords when to list accessories belong to the subject manifest. Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
7fee99b5fe
commit
7b40dc6f46
@ -156,7 +156,7 @@ func Middleware() func(http.Handler) http.Handler {
|
||||
// In certain cases, the OCI client may push the subject artifact and accessory in either order.
|
||||
// Therefore, it is necessary to handle situations where the client pushes the accessory ahead of the subject artifact.
|
||||
digest := digest.FromBytes(body)
|
||||
accs, err := accessory.Mgr.List(ctx, q.New(q.KeyWords{"SubjectArtifactDigest": digest, "SubArtifactRepo": info.Repository}))
|
||||
accs, err := accessory.Mgr.List(ctx, q.New(q.KeyWords{"SubjectArtifactDigest": digest, "SubjectArtifactRepo": info.Repository}))
|
||||
if err != nil {
|
||||
logger.Errorf("failed to list accessory artifact: %s, error: %v", digest, err)
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user