apache / apache/curator

[CURATOR-189] Inconsistent path validation for creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT_SEQUENTIAL)

Open
#710 2 comments 0 reactions 0 assignees View on GitHub
bug imported-jira-issue
Dominant language
Java
Stars
3.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

There is an inconsistency in handling paths when calling:

curator.create().creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT_SEQUENTIAL).forPath(). If the path passed ends with a "/", the call will succeed if the parents exist, but fail if it does not exist.

There is no path validation done on the parent path unless it needs to be created.

I think the correct behavior should be that if the parent path ends with a "/", then just to remove the slash and create the parents anyways.

---
Originally reported by kylar, imported from: Inconsistent path validation for creatingParentsIfNeeded().withMode(CreateMode.PERSISTENT_SEQUENTIAL)


  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2025-01-21

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.