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

Yusaku Sako updated AMBARI-19473:
---------------------------------
    Reporter: Vivek Sharma  (was: Jonathan Hurley)

> Add Downgrade request validation to avoid accidental double-upgrades
> --------------------------------------------------------------------
>
>                 Key: AMBARI-19473
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19473
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.0
>            Reporter: Vivek Sharma
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-19473.patch
>
>
> There are currently several ways of starting upgrades / downgrades:
> - The use of a directive on the request
> {noformat}
> http://localhost:8080/api/v1/clusters/c1/upgrades?downgrade=true
> {noformat}
> - The POST body JSON
> {noformat}
> {
> "RequestInfo": {
>   "downgrade": "true"
>   },
> "Upgrade":{
>   "from_version": ...
>  }
> }
> {noformat}
> The directive is confusing and can allow multiple downgrades or upgrades to 
> be scheduled concurrently. It should be removed for consistency and the 
> {{Upgrade/direction}} property should replace it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to