Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D39F6200B27 for ; Wed, 22 Jun 2016 19:59:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D2519160A68; Wed, 22 Jun 2016 17:59:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2F678160A64 for ; Wed, 22 Jun 2016 19:59:17 +0200 (CEST) Received: (qmail 96409 invoked by uid 500); 22 Jun 2016 17:59:16 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 96389 invoked by uid 99); 22 Jun 2016 17:59:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 17:59:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 38A0F2C1F60 for ; Wed, 22 Jun 2016 17:59:16 +0000 (UTC) Date: Wed, 22 Jun 2016 17:59:16 +0000 (UTC) From: "Robert Levas (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-17226) When requesting a Kerberos Descriptor via the REST API, 'when' clauses should optionally be processed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Jun 2016 17:59:18 -0000 [ https://issues.apache.org/jira/browse/AMBARI-17226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Levas updated AMBARI-17226: ---------------------------------- Attachment: AMBARI-17226_trunk_03.patch AMBARI-17226_branch-2.4_03.patch > 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)