{"record":{"id":"20abb2e069cff873","repo":"goharbor/harbor","slug":"not-support-action-s","errorCode":null,"errorMessage":"not support action %s","messagePattern":"not support action (.+?)","errorType":"validation","errorClass":null,"httpStatus":500,"severity":"error","filePath":"src/controller/retention/controller.go","lineNumber":308,"sourceCode":"\t}()\n\n\treturn id, err\n}\n\n// OperateRetentionExec Operate Retention Execution\nfunc (r *defaultController) OperateRetentionExec(ctx context.Context, eid int64, action string) error {\n\te, err := r.execMgr.Get(ctx, eid)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif e == nil {\n\t\treturn fmt.Errorf(\"execution %d not found\", eid)\n\t}\n\tswitch action {\n\tcase \"stop\":\n\t\treturn r.launcher.Stop(ctx, eid)\n\tdefault:\n\t\treturn fmt.Errorf(\"not support action %s\", action)\n\t}\n}\n\n// GetRetentionExec Get Retention Execution\nfunc (r *defaultController) GetRetentionExec(ctx context.Context, executionID int64) (*retention.Execution, error) {\n\te, err := r.execMgr.Get(ctx, executionID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn convertExecution(e), nil\n}\n\n// ListRetentionExecs List Retention Executions\nfunc (r *defaultController) ListRetentionExecs(ctx context.Context, policyID int64, query *q.Query) ([]*retention.Execution, error) {\n\tquery = q.MustClone(query)\n\tquery.Keywords[\"VendorType\"] = job.RetentionVendorType\n\tquery.Keywords[\"VendorID\"] = policyID","sourceCodeStart":290,"sourceCodeEnd":326,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/controller/retention/controller.go#L290-L326","documentation":"Error \"not support action %s\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/controller/retention/controller.go:308 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"}