{"record":{"id":"55a49a070ecad737","repo":"goharbor/harbor","slug":"the-configure-value-can-not-be-empty","errorCode":null,"errorMessage":"the configure value can not be empty","messagePattern":"the configure value can not be empty","errorType":"validation","errorClass":null,"httpStatus":400,"severity":"error","filePath":"src/lib/config/metadata/value.go","lineNumber":34,"sourceCode":"\nimport (\n\t\"errors\"\n\t\"time\"\n\n\t\"github.com/goharbor/harbor/src/lib/log\"\n)\n\nvar (\n\t// ErrNotDefined ...\n\tErrNotDefined = errors.New(\"configure item is not defined in metadata\")\n\t// ErrTypeNotMatch ...\n\tErrTypeNotMatch = errors.New(\"the required value doesn't matched with metadata defined\")\n\t// ErrInvalidData ...\n\tErrInvalidData = errors.New(\"the data provided is invalid\")\n\t// ErrValueNotSet ...\n\tErrValueNotSet = errors.New(\"the configure value is not set\")\n\t// ErrStringValueIsEmpty ...\n\tErrStringValueIsEmpty = errors.New(\"the configure value can not be empty\")\n)\n\n// ConfigureValue - struct to hold a actual value, also include the name of config metadata.\ntype ConfigureValue struct {\n\tName  string `json:\"name,omitempty\"`\n\tValue string `json:\"value,omitempty\"`\n}\n\n// NewCfgValue ... Create checked config value\nfunc NewCfgValue(name, value string) (*ConfigureValue, error) {\n\tresult := &ConfigureValue{}\n\terr := result.Set(name, value)\n\tif err != nil {\n\t\tresult.Name = name // Keep name to trace error\n\t}\n\treturn result, err\n}\n","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/lib/config/metadata/value.go#L16-L52","documentation":"Error \"the configure value can not be empty\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/lib/config/metadata/value.go:34 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"}