{"record":{"id":"fdd3cad76b2d12fd","repo":"juicedata/juicefs","slug":"invalid-endpoint-s-s-fdd3ca","errorCode":null,"errorMessage":"Invalid endpoint %s: %s","messagePattern":"Invalid endpoint (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/object/gluster.go","lineNumber":280,"sourceCode":"func (g *gluster) Chtimes(path string, mtime time.Time) error {\n\treturn notSupported\n}\n\nfunc (g *gluster) Chmod(path string, mode os.FileMode) error {\n\treturn g.vol().Chmod(path, mode)\n}\n\nfunc (g *gluster) Chown(path string, owner, group string) error {\n\treturn notSupported\n}\n\nfunc newGluster(endpoint, ak, sk, token string) (ObjectStorage, error) {\n\tif !strings.Contains(endpoint, \"://\") {\n\t\tendpoint = fmt.Sprintf(\"gluster://%s\", endpoint)\n\t}\n\turi, err := url.ParseRequestURI(endpoint)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"Invalid endpoint %s: %s\", endpoint, err)\n\t}\n\tps := strings.Split(uri.Path, \"/\")\n\tif len(ps) == 1 {\n\t\treturn nil, fmt.Errorf(\"no volume provided\")\n\t}\n\tname := ps[1]\n\t// multiple clients for possible performance improvement\n\tvar size int\n\tif ssize := os.Getenv(\"JFS_NUM_GLUSTER_CLIENTS\"); ssize != \"\" {\n\t\tsize, _ = strconv.Atoi(ssize)\n\t\tif size > 8 {\n\t\t\tsize = 8\n\t\t}\n\t}\n\tif size < 1 {\n\t\tsize = 1\n\t}\n\t// logging","sourceCodeStart":262,"sourceCodeEnd":298,"githubUrl":"https://github.com/juicedata/juicefs/blob/c9a67b23e8e08ec23ec331aa6f1675e2319e921c/pkg/object/gluster.go#L262-L298","documentation":"url.ParseRequestURI rejected the gluster endpoint after scheme prefixing. A validation guard: the endpoint string is not a parseable URI (malformed host, bad characters, missing authority), so no gluster volume connection can be attempted.","triggerScenarios":"Thrown at pkg/object/gluster.go:280 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a well-formed gluster endpoint, e.g. gluster://host/volume"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c9a67b23e8e08ec23ec331aa6f1675e2319e921c","analyzedAt":"2026-09-06T17:55:48.476Z","contentChangedAt":"2026-09-06T17:55:48.476Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}