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

Robert Levas updated AMBARI-17226:
----------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed to trunk
{noformat}
commit 628f81922cc099d5fa7ca8299d860176486f07c4
Author: Robert Levas <[email protected]>
Date:   Thu Jun 23 15:31:06 2016 -0400
{noformat}

Committed to branch-2.4
{noformat}
commit 77a9ce8ce5bf6062de3cb937aad98964b0527c5a
Author: Robert Levas <[email protected]>
Date:   Thu Jun 23 15:32:04 2016 -0400
{noformat}


> When requesting a Kerberos Descriptor via the REST API, 'when' clauses should 
> optionally be processed
> -----------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-17226
>                 URL: https://issues.apache.org/jira/browse/AMBARI-17226
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-17226_branch-2.4_01.patch, 
> AMBARI-17226_branch-2.4_02.patch, AMBARI-17226_branch-2.4_03.patch, 
> AMBARI-17226_trunk_01.patch, AMBARI-17226_trunk_02.patch, 
> AMBARI-17226_trunk_03.patch
>
>
> When requesting a Kerberos Descriptor via the REST API, 'when' clauses should 
> optionally be processed.  If elected to be processed, identities that contain 
> {{when}} clauses will be included or excluded from the resulting descriptor 
> based on the result of the evaluation. 
> In the event of an _add service_ scenario, the services being added should be 
> able to be specified so that they can be included in the data used for 
> {{when}}-clause evaluation.  
> *Solution*
> Add _{{GET}} directives_ to specify whether {{when}} clauses are to be 
> evaluated (or not) while building the Kerberos Descriptor using the following 
> API call:
> {noformat}
> GET 
> /api/v1/clusters/CLUSTER_NAME/kerberos_descriptors/COMPOSITE?evaluate_when=true
> {noformat}
> If new services are being added, the {{additional_services}} directive should 
> be added to the request so the evaluation can be preformed on the _future_ 
> set of services, which may evaluate differently then the _current_ set of 
> services.
> {noformat}
> GET 
> /api/v1/clusters/CLUSTER_NAME/kerberos_descriptors/COMPOSITE?evaluate_when=true@additional_services=HIVE,TEZ,PIG
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to