You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2016/07/06 17:18:11 UTC
[jira] [Commented] (AMBARI-17588) Creation of config groups with
invalid config type doesn't throw any error
[ https://issues.apache.org/jira/browse/AMBARI-17588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15364671#comment-15364671 ]
Hudson commented on AMBARI-17588:
---------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit #5238 (See [https://builds.apache.org/job/Ambari-trunk-Commit/5238/])
AMBARI-17588. Creation of config groups with invalid config type doesn't (mpapyrkovskyy: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=445bf7aff5b955bcd6cd7571eba15e3250819e6c])
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/ConfigGroupResourceProviderTest.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ConfigGroupResourceProvider.java
> Creation of config groups with invalid config type doesn't throw any error
> --------------------------------------------------------------------------
>
> Key: AMBARI-17588
> URL: https://issues.apache.org/jira/browse/AMBARI-17588
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.4.0
> Reporter: Myroslav Papirkovskyi
> Assignee: Myroslav Papirkovskyi
> Priority: Critical
> Fix For: 2.4.0
>
> Attachments: AMBARI-17588.patch
>
>
> user should not be able to create a config group with invalid config type. Ambari should throw a 500 Server Error. Please see below where tests fail as the POST call succeeds with a '201 Created' response for an invalid config type.
> {code}
> 2016-06-30 03:00:24,164 INFO com.hw.ambari.ui.util.cluster_managers.APIManager.doPost(): executing POST https://172.22.78.117:8443/api/v1/clusters/cl1/config_groups
> {
> "ConfigGroup": {
> "cluster_name": "cl1",
> "group_name": "brokennewgroup",
> "tag": "HDFS",
> "description": "test",
> "hosts": [],
> "desired_configs": [
> {
> "type": "brokencore-site",
> "tag": "nextgen1",
> "properties": {
> "key": "value"
> }
> }
> ]
> }
> }
> 2016-06-30 03:00:24,301 INFO com.hw.ambari.ui.util.cluster_managers.APIManager.getResponseBody(): HTTP/1.1 201 Created
> 2016-06-30 03:00:24,302 INFO com.hw.ambari.ui.util.cluster_managers.APIManager.getResponseBody(): {
> "resources" : [
> {
> "href" : "https://172.22.78.117:8443/api/v1/clusters/cl1/config_groups/2",
> "ConfigGroup" : {
> "id" : 2
> }
> }
> ]
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)