apache / apache/curator

[CURATOR-379] unfixForNamespace corrupts child path when it contains namespace

Open
#899 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

When a child path starts with the namespace unfixForNamespace removes the namespace string, thus creating a invalid path.

With namespace "foo" the result of unfixForNamespace("/foobar") is "bar".

---
Originally reported by marvin.lillehaug, imported from: unfixForNamespace corrupts child path when it contains namespace


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

Contributor guide

No contributing guide indexed for this repository

Research direction

Search the project for `unfixForNamespace` and read its implementation and nearby tests; the issue does not name specific files or tests. Reproduce the reported case with namespace `foo` and child path `/foobar`, then add a regression test showing the child path remains valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.