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-12811) Disable old APIs to manage baseurl values
Date Wed, 26 Aug 2015 18:25:46 GMT

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

Hudson commented on AMBARI-12811:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #3328 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3328/])
AMBARI-12811: Disable old APIs to manage baseurl values (Nahappan Somasundaram via jluniya)
(jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=bbb042f32d5b7bb3937d6426f16243fd27effb45)
* ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
* ambari-server/conf/unix/ambari.properties
* ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java


> Disable old APIs to manage baseurl values
> -----------------------------------------
>
>                 Key: AMBARI-12811
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12811
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.1
>            Reporter: Nahappan Somasundaram
>            Assignee: Nahappan Somasundaram
>            Priority: Critical
>              Labels: ambari-server, newbie
>             Fix For: 2.2.0
>
>
> Starting Ambari-2.0 and HDP-2.2, the baseurl for HDP/HDP-UTILS are being tracked in the
repo_version table. However, the API to manage baseurls through metainfo are still working
and it causes confusion for people who have been using these APIs.
> The following API should throw an error if HDP version is 2.2 or higher. Note that this
is an error only if HDP version is 2.2. or higher and the property being modified is "base_url".
> {code}
> curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"Repositories":{"base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0","verify_base_url":true}}'
http://localhost:8080/api/v1/stacks/HDP/versions/2.2/operating_systems/redhat6/repositories/HDP-2.2
> {code}



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

Mime
View raw message