curator icon indicating copy to clipboard operation
curator copied to clipboard

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

Open jira-importer opened this issue 10 years ago • 2 comments

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

jira-importer avatar Feb 19 '15 20:02 jira-importer

kylar:

This SSCCE shows how the call results are different, depending on the state of the parent.

jira-importer avatar Feb 19 '15 20:02 jira-importer

[Originally related to: CURATOR-499]

jira-importer avatar Jan 21 '25 13:01 jira-importer