{"record":{"id":"f510e862794d0d42","repo":"vxcontrol/pentagi","slug":"path-component-contains-control-characters","errorCode":null,"errorMessage":"path component contains control characters","messagePattern":"path component contains control characters","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/pkg/resources/resources.go","lineNumber":444,"sourceCode":"\t\t_, copyErr := io.Copy(zf, f)\n\t\tf.Close()\n\t\treturn copyErr\n\t})\n}\n\n// validatePathComponent rejects empty, dot/dotdot, overly long, or\n// character-unsafe path segments.  Mirrors flowfiles.validatePathComponent.\nfunc validatePathComponent(component string) error {\n\tclean := strings.TrimSpace(component)\n\tif clean == \"\" || clean == \".\" || clean == \"..\" {\n\t\treturn fmt.Errorf(\"invalid path component %q\", component)\n\t}\n\tif len(clean) > MaxFileNameLength {\n\t\treturn fmt.Errorf(\"path component %q exceeds maximum length of %d\", component, MaxFileNameLength)\n\t}\n\tfor _, r := range clean {\n\t\tif r < 0x20 || r == 0x7f {\n\t\t\treturn fmt.Errorf(\"path component contains control characters\")\n\t\t}\n\t\tswitch r {\n\t\tcase '/', '\\\\', ':', '*', '?', '\"', '<', '>', '|':\n\t\t\treturn fmt.Errorf(\"path component contains unsupported character %q\", r)\n\t\t}\n\t}\n\treturn nil\n}\n","sourceCodeStart":426,"sourceCodeEnd":453,"githubUrl":"https://github.com/vxcontrol/pentagi/blob/ea665308baaff015b226f308438a68d929d0f29b/backend/pkg/resources/resources.go#L426-L453","documentation":"Error \"path component contains control characters\" thrown in vxcontrol/pentagi.","triggerScenarios":"Thrown at backend/pkg/resources/resources.go:444 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":"ea665308baaff015b226f308438a68d929d0f29b","analyzedAt":"2026-09-01T14:16:31.421Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}