{"record":{"id":"184fde452d8c6717","repo":"goharbor/harbor","slug":"native-report-required","errorCode":null,"errorMessage":"native report required","messagePattern":"native report required","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/scan/report/report.go","lineNumber":47,"sourceCode":"\tv1.MimeTypeNativeReport:               MergeNativeReport,\n\tv1.MimeTypeGenericVulnerabilityReport: MergeNativeReport,\n}\n\n// Merge merge report r1 and r2\nfunc Merge(mimeType string, r1, r2 any) (any, error) {\n\tm, ok := SupportedMergers[mimeType]\n\tif !ok {\n\t\treturn nil, errors.Errorf(\"no report merger bound with mime type %s\", mimeType)\n\t}\n\n\treturn m(r1, r2)\n}\n\n// MergeNativeReport merge report r1 and r2\nfunc MergeNativeReport(r1, r2 any) (any, error) {\n\tnr1, ok := r1.(*vuln.Report)\n\tif !ok {\n\t\treturn nil, errors.New(\"native report required\")\n\t}\n\n\tnr2, ok := r2.(*vuln.Report)\n\tif !ok {\n\t\treturn nil, errors.New(\"native report required\")\n\t}\n\n\treturn nr1.Merge(nr2), nil\n}\n\n// Reports slice of scan.Reports pointer\ntype Reports []*scan.Report\n\n// ResolveData resolve the data from the reports and merge them together\nfunc (l Reports) ResolveData(mimeType string) (any, error) {\n\tvar result any\n\n\tfor _, rp := range l {","sourceCodeStart":29,"sourceCodeEnd":65,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/scan/report/report.go#L29-L65","documentation":"Error \"native report required\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/scan/report/report.go:47 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}