[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henry Robinson updated ZOOKEEPER-758:
-------------------------------------

    Status: Patch Available  (was: Open)

> zkpython segfaults on invalid acl with missing key
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-758
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-758
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: contrib-bindings
>    Affects Versions: 3.3.0, 3.4.0
>         Environment: ubuntu lucid (10.04)
>            Reporter: Kapil Thangavelu
>         Attachments: invalid-acl-fix-and-test.diff, ZOOKEEPER-758.patch, 
> ZOOKEEPER-758.patch
>
>
> Currently when setting an acl, there is a minimal parse to ensure that its a 
> list of dicts, however if one of the dicts is missing a required key, the 
> subsequent usage doesn't check for it, and will segfault.. for example using 
> an acl of [{"schema":id, "id":world, permissions:PERM_ALL}] will segfault if 
> used, because the scheme key is missing (its been purposefully typo'd to 
> schema in example). 
> I've expanded the check_acl macro to include verifying that all keys are 
> present and added some unit tests against trunk in the attachments.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to