{"record":{"id":"7ec5a0f8220722ac","repo":"goharbor/harbor","slug":"empty-uuid-of-registration","errorCode":null,"errorMessage":"empty uuid of registration","messagePattern":"empty uuid of registration","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/scan/scanner/manager.go","lineNumber":107,"sourceCode":"\tif err := registration.Validate(true); err != nil {\n\t\treturn \"\", errors.Wrap(err, \"create registration\")\n\t}\n\n\tif err := encryptCredential(registration); err != nil {\n\t\treturn \"\", errors.Wrap(err, \"encrypt credential: create registration\")\n\t}\n\n\tif _, err := scanner.AddRegistration(ctx, registration); err != nil {\n\t\treturn \"\", errors.Wrap(err, \"dao: create registration\")\n\t}\n\n\treturn uid.String(), nil\n}\n\n// Get ...\nfunc (bm *basicManager) Get(ctx context.Context, registrationUUID string) (*scanner.Registration, error) {\n\tif len(registrationUUID) == 0 {\n\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\")","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/scan/scanner/manager.go#L89-L125","documentation":"Error \"empty uuid of registration\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/scan/scanner/manager.go:107 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"}