goharbor/harbor · error · NotFoundError
NOT_FOUND
NOT_FOUND
Error message
license layer not found
What it means
Error "license layer not found" thrown in goharbor/harbor.
Source
Thrown at src/controller/artifact/processor/cnai/parser/license.go:66
// lookup the license file layer
var layer *ocispec.Descriptor
for _, desc := range manifest.Layers {
if slices.Contains([]string{
modelspec.MediaTypeModelDoc,
modelspec.MediaTypeModelDocRaw,
}, desc.MediaType) {
if desc.Annotations != nil {
filepath := desc.Annotations[modelspec.AnnotationFilepath]
if filepath == "LICENSE" || filepath == "LICENSE.txt" {
layer = &desc
break
}
}
}
}
if layer == nil {
return "", nil, errors.NotFoundError(fmt.Errorf("license layer not found"))
}
return l.base.Parse(ctx, artifact, layer)
}
View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/controller/artifact/processor/cnai/parser/license.go:66 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16).
Data as JSON: /api/errors/8914756b6d13c238.
Report an issue: GitHub.