{"record":{"id":"601575e0f3d8b161","repo":"vxcontrol/pentagi","slug":"path-component-q-exceeds-maximum-length-of-d","errorCode":null,"errorMessage":"path component %q exceeds maximum length of %d","messagePattern":"path component %q exceeds maximum length of (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/pkg/resources/resources.go","lineNumber":440,"sourceCode":"\t\tf, err := os.Open(entryPath)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"failed to open file: %w\", err)\n\t\t}\n\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":422,"sourceCodeEnd":453,"githubUrl":"https://github.com/vxcontrol/pentagi/blob/ea665308baaff015b226f308438a68d929d0f29b/backend/pkg/resources/resources.go#L422-L453","documentation":"Error \"path component %q exceeds maximum length of %d\" thrown in vxcontrol/pentagi.","triggerScenarios":"Thrown at backend/pkg/resources/resources.go:440 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"}