Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E80C210F41 for ; Tue, 4 Nov 2014 17:32:34 +0000 (UTC) Received: (qmail 8055 invoked by uid 500); 4 Nov 2014 17:32:34 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 8017 invoked by uid 500); 4 Nov 2014 17:32:34 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 8005 invoked by uid 99); 4 Nov 2014 17:32:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Nov 2014 17:32:34 +0000 Date: Tue, 4 Nov 2014 17:32:34 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-8136) Views: creating instance of same name overwrites existing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-8136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14196407#comment-14196407 ] Hudson commented on AMBARI-8136: -------------------------------- SUCCESS: Integrated in Ambari-branch-1.7.0-docker #83 (See [https://builds.apache.org/job/Ambari-branch-1.7.0-docker/83/]) AMBARI-8136 - Views: creating instance of same name overwrites existing (tbeerbower) (tbeerbower: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=6bbecfd9e24bac4daf4019d8274ef9b8ceabb883) * ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProvider.java * ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ViewInstanceResourceProviderTest.java > Views: creating instance of same name overwrites existing > --------------------------------------------------------- > > Key: AMBARI-8136 > URL: https://issues.apache.org/jira/browse/AMBARI-8136 > Project: Ambari > Issue Type: Bug > Reporter: Tom Beerbower > Assignee: Tom Beerbower > Fix For: 1.7.0 > > Attachments: AMBARI-8136.patch > > > Attempt to create an existing view instance fails as expected but updates in-memory representation of the existing instance. > STR: > 1. create view instance JOBS1 > 2. save, success > 3. attempt to create another view instance and call it JOBS1 > 4. You are shown an error since the instance name needs to be unique. And API is showing a conflict. All that seems correct. Except, it overwrites all the view properties: display name, description, config params, etc. So I lost all my original settings. -- This message was sent by Atlassian JIRA (v6.3.4#6332)