[
https://issues.apache.org/jira/browse/ZOOKEEPER-682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840987#action_12840987
]
Mahadev konar commented on ZOOKEEPER-682:
-----------------------------------------
+1 the patch looks good. Pat you are right that the c api already takes care of
it and also has a test included for it.
> Event is not processed when the watcher is set to watch "/" if chrooted
> -----------------------------------------------------------------------
>
> Key: ZOOKEEPER-682
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-682
> Project: Zookeeper
> Issue Type: Bug
> Components: java client
> Affects Versions: 3.2.2
> Reporter: Scott Wang
> Assignee: Scott Wang
> Priority: Blocker
> Fix For: 3.3.0
>
> Attachments: ZOOKEEPER-682.patch, ZOOKEEPER-682.patch
>
>
> After the event notification response from server is received, the client
> will convert the server path to the client path if chrooted by:
> event.setPath(serverPath.substring(chrootPath.length());
> If chrootPath and serverPath are the same, then the event's path will be set
> to a null string.
> But the key of the watcher's map is "/", not a null string, so the watcher
> will not get notified at all.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.