{"record":{"id":"9b2244d41ec2e1da","repo":"goharbor/harbor","slug":"resource-s-not-support","errorCode":null,"errorMessage":"resource %s not support","messagePattern":"resource (.+?) not support","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/controller/quota/driver/project/project.go","lineNumber":92,"sourceCode":"\tif !ok {\n\t\treturn nil, fmt.Errorf(\"bad result for project: %s\", key)\n\t}\n\n\treturn dr.QuotaRefObject{\n\t\t\"id\":         project.ProjectID,\n\t\t\"name\":       project.Name,\n\t\t\"owner_name\": project.OwnerName,\n\t}, nil\n}\n\nfunc (d *driver) Validate(hardLimits types.ResourceList) error {\n\tresources := map[types.ResourceName]bool{\n\t\ttypes.ResourceStorage: true,\n\t}\n\n\tfor resource, value := range hardLimits {\n\t\tif !resources[resource] {\n\t\t\treturn fmt.Errorf(\"resource %s not support\", resource)\n\t\t}\n\n\t\tif err := lib.ValidateQuotaLimit(value); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\n\tfor resource := range resources {\n\t\tif _, found := hardLimits[resource]; !found {\n\t\t\treturn fmt.Errorf(\"resource %s not found\", resource)\n\t\t}\n\t}\n\n\treturn nil\n}\n\nfunc (d *driver) CalculateUsage(ctx context.Context, key string) (types.ResourceList, error) {\n\tprojectID, err := strconv.ParseInt(key, 10, 64)","sourceCodeStart":74,"sourceCodeEnd":110,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/controller/quota/driver/project/project.go#L74-L110","documentation":"Error \"resource %s not support\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/controller/quota/driver/project/project.go:92 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"}