Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15D1D18C44 for ; Thu, 16 Jul 2015 12:59:09 +0000 (UTC) Received: (qmail 47969 invoked by uid 500); 16 Jul 2015 12:59:05 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 47939 invoked by uid 500); 16 Jul 2015 12:59:05 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 47929 invoked by uid 500); 16 Jul 2015 12:59:05 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 47926 invoked by uid 99); 16 Jul 2015 12:59:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2015 12:59:05 +0000 Date: Thu, 16 Jul 2015 12:59:05 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8641) When calling "update hostpassword" API it throws NPE if the update_passwd_on_host if not informed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8641?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D14629677#comment-14629677 ]=20 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=3Dcloudstack.git;h=3D984fafc ] CLOUDSTACK-8641 - Adding unit tests - Making sure that the boolean value is false and also that the updateH= ostPassword() method gets called. Signed-off-by: Rohit Yadav 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-864= 1 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > 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. W= as so eager to test it going all the way to the hosts that did not checking= the default value. > This call fails: > (local) =F0=9F=90=B5 > update hostpassword clusterid=3D53963278-f9d1-42d5= -bab5-18c7ec466a0b username=3Droot password=3Dadmin123 > Error 530: None > cserrorcode =3D 9999 > errorcode =3D 530 > When it should not. > But this one passes: > (local) =F0=9F=90=B5 > update hostpassword clusterid=3D53963278-f9d1-42d5= -bab5-18c7ec466a0b username=3Droot password=3Dadmin123 update_passwd_on_hos= t=3Dfalse > success =3D true -- This message was sent by Atlassian JIRA (v6.3.4#6332)