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

ASF subversion and git services commented on CLOUDSTACK-9981:
-------------------------------------------------------------

Commit 917666b19cf8af7713719678717f49024cd4cad4 in cloudstack's branch 
refs/heads/master from [~niteshsarda]
[ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=917666b ]

CLOUDSTACK-9981 : Regression occurs after upgrading to 4.10 while registering a 
template.


> Regression occurs after upgrading to 4.10 while registering a template.
> -----------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9981
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9981
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Nitesh Sarda
>
> When an environment is upgraded to 4.10, then while registering template for 
> a zone from cloudstack UI will fail if it is created in older version(before 
> 3.x). 
> This bug got introduced with the PR#1894 for CLOUDSTACK-9700. In this PR a 
> new parameter ‘zoneIds’ was added to the registerTemplate api and is marked 
> with the ‘since’ attribute as ‘4.10.0.0’. since attribute is suppose to 
> provide version for the containing data, not about when parameter was 
> introduced. Although the parameter was introduced in 4.10, but it can contain 
> the information from earlier version, thus it is wrongly marked here as 
> ‘4.10.0.0’.  
> This issue occurs because zones from older version have UUID parameter value 
> as Integer, whereas higher version zones have fixed format. So while fetching 
> the ZoneIds for installing templates, parsing for UUID with integer value 
> fails and hence template is not installed.
> Fix :
> For the sake of backward compatibility, along with UUID, integer is also 
> being parsed while retrieving ZoneId for the installing templates. Integer 
> value of UUID cannot be converted into the fixed format because this value is 
> used as a hard coded value in few automation scripts which runs locally for 
> some customers. Hence, "since" attribute should be removed from a parameter 
> command for ZoneIds.   



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to