You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Nahappan Somasundaram (JIRA)" <ji...@apache.org> on 2015/08/18 21:36:46 UTC

[jira] [Updated] (AMBARI-12811) Disable old APIs to manage baseurl values

     [ https://issues.apache.org/jira/browse/AMBARI-12811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nahappan Somasundaram updated AMBARI-12811:
-------------------------------------------
    Description: 
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}

> 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
>             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)