Copy sets acls before creating child znodes
Closed this issue · 1 comments
svoutil commented
Recursive cp sets acls before creating child znodes and so creation of the child znodes fails if the acls disallow creates.
Repo:
Welcome to zk-shell (0.97.3)
(CONNECTING) />
(CONNECTED) /> create /foo 'Hello'
(CONNECTED) /> create /foo/z 'Hello'
(CONNECTED) /> set_acls /foo world:anyone:r username_password:foo:foo:cdrwa
(CONNECTED) /> cp /foo /bar true true
Copy failed; it may have partially completed. To return to a stable state, either fix the issue and re-run the command or manually revert.
Failure reason:
Permission denied: Could not create znode /bar/z.
(CONNECTED) />