{"record":{"id":"990659e76d2ecd50","repo":"goharbor/harbor","slug":"param-s-not-found-990659","errorCode":null,"errorMessage":"param %s not found","messagePattern":"param (.+?) not found","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/jobservice/job/impl/replication/replication.go","lineNumber":164,"sourceCode":"\tvar copyByChunk bool\n\tvalue, exist = params[\"copy_by_chunk\"]\n\tif exist {\n\t\tif boolVal, ok := value.(bool); ok {\n\t\t\tcopyByChunk = boolVal\n\t\t}\n\t}\n\n\topts := transfer.NewOptions(\n\t\ttransfer.WithSpeed(speed),\n\t\ttransfer.WithCopyByChunk(copyByChunk),\n\t)\n\treturn src, dst, opts, nil\n}\n\nfunc parseParam(params map[string]any, name string, v any) error {\n\tvalue, exist := params[name]\n\tif !exist {\n\t\treturn fmt.Errorf(\"param %s not found\", name)\n\t}\n\n\tstr, ok := value.(string)\n\tif !ok {\n\t\treturn fmt.Errorf(\"the value of %s isn't string\", name)\n\t}\n\n\treturn json.Unmarshal([]byte(str), v)\n}\n","sourceCodeStart":146,"sourceCodeEnd":174,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/jobservice/job/impl/replication/replication.go#L146-L174","documentation":"Generic replication job parameter guard: the named parameter (e.g. src_resource, dst_resource) is missing from the job's parameter map, so the transfer cannot be set up. This is a sentinel used by parseParam for all required string parameters.","triggerScenarios":"Thrown at src/jobservice/job/impl/replication/replication.go:164 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the replication scheduler includes all required params (src_resource, dst_resource)","Check for parameter loss during job serialization","Re-trigger the replication after fixing the scheduling payload"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","contentChangedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}