ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14835) Create Setting should not throw 500 error on duplicate resource creation.
Date Sat, 30 Jan 2016 06:13:39 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-14835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15124763#comment-15124763
] 

Hudson commented on AMBARI-14835:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #4252 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4252/])
AMBARI-14835: Return 409 instead of 500 for duplicate setting creation (nsomasundaram: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=528e8ea5e05d98866e14dcfbe2d2becf6b7ceb7e])
* ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AdminSettingDAOTest.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AdminSettingResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AdminSettingResourceProvider.java


> Create Setting should not throw 500 error on duplicate resource creation.
> -------------------------------------------------------------------------
>
>                 Key: AMBARI-14835
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14835
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Ajit Kumar
>            Assignee: Ajit Kumar
>             Fix For: 2.4.0
>
>         Attachments: rb42917.patch
>
>
> Currently ambari service is throwing 500 error when user tries to create a new setting
with a name which is already present in DB. Setting name is unique and two settings cannot
share same name. Instead of returning 500 error,  return 409.



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

Mime
View raw message