{"record":{"id":"ce8c864b62d859fd","repo":"goharbor/harbor","slug":"nil-registration-to-update","errorCode":null,"errorMessage":"nil registration to update","messagePattern":"nil registration to update","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/scan/scanner/manager.go","lineNumber":125,"sourceCode":"\t\treturn nil, errors.New(\"empty uuid of registration\")\n\t}\n\n\tr, err := scanner.GetRegistration(ctx, registrationUUID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif r != nil {\n\t\tif err := decryptCredential(r); err != nil {\n\t\t\treturn nil, errors.Wrap(err, \"decrypt credential: get registration\")\n\t\t}\n\t}\n\treturn r, nil\n}\n\n// Update ...\nfunc (bm *basicManager) Update(ctx context.Context, registration *scanner.Registration) error {\n\tif registration == nil {\n\t\treturn errors.New(\"nil registration to update\")\n\t}\n\n\tif err := registration.Validate(true); err != nil {\n\t\treturn errors.Wrap(err, \"update registration\")\n\t}\n\n\tif err := encryptCredential(registration); err != nil {\n\t\treturn errors.Wrap(err, \"encrypt credential: update registration\")\n\t}\n\n\treturn scanner.UpdateRegistration(ctx, registration)\n}\n\n// Delete ...\nfunc (bm *basicManager) Delete(ctx context.Context, registrationUUID string) error {\n\tif len(registrationUUID) == 0 {\n\t\treturn errors.New(\"empty UUID to delete\")\n\t}","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/scan/scanner/manager.go#L107-L143","documentation":"Error \"nil registration to update\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/scan/scanner/manager.go:125 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"}