ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayush Luniya (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12811) Disable old APIs to manage baseurl values
Date Wed, 26 Aug 2015 15:49:46 GMT

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

Jayush Luniya commented on AMBARI-12811:
----------------------------------------

commit bbb042f32d5b7bb3937d6426f16243fd27effb45
Author: Jayush Luniya <jluniya@hortonworks.com>
Date:   Wed Aug 26 08:48:49 2015 -0700

    AMBARI-12811: Disable old APIs to manage baseurl values (Nahappan Somasundaram via jluniya)

> 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