cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8641) When calling "update hostpassword" API it throws NPE if the update_passwd_on_host if not informed
Date Thu, 16 Jul 2015 12:59:05 GMT

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

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

Commit 984fafce77f4a7831ff1c0f30dd433d28225f490 in cloudstack's branch refs/heads/master from
[~wilder.rodrigues]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=984fafc ]

CLOUDSTACK-8641 - Adding unit tests

    - Making sure that the boolean value is false and also that the updateHostPassword() method
gets called.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #596


> When calling "update hostpassword" API it throws NPE if the update_passwd_on_host if
not informed
> -------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8641
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8641
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.6.0
>            Reporter: Wilder Rodrigues
>            Assignee: Wilder Rodrigues
>
> My apologies,
> I forgot to check the value of the Boolean attribute it's not informed. Was so eager
to test it going all the way to the hosts that did not checking the default value.
> This call fails:
> (local) 🐵 > update hostpassword clusterid=53963278-f9d1-42d5-bab5-18c7ec466a0b
username=root password=admin123
> Error 530: None
> cserrorcode = 9999
> errorcode = 530
> When it should not.
> But this one passes:
> (local) 🐵 > update hostpassword clusterid=53963278-f9d1-42d5-bab5-18c7ec466a0b
username=root password=admin123 update_passwd_on_host=false
> success = true



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

Mime
View raw message