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 0A05F189B5 for ; Tue, 19 Jan 2016 16:46:41 +0000 (UTC) Received: (qmail 4570 invoked by uid 500); 19 Jan 2016 16:46:40 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 4494 invoked by uid 500); 19 Jan 2016 16:46:40 -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 4280 invoked by uid 500); 19 Jan 2016 16:46:40 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 3883 invoked by uid 99); 19 Jan 2016 16:46:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 16:46:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F1F9B2C1F6B for ; Tue, 19 Jan 2016 16:46:39 +0000 (UTC) Date: Tue, 19 Jan 2016 16:46:39 +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-9132) API createVolume takes empty string for name parameter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15106984#comment-15106984 ] ASF subversion and git services commented on CLOUDSTACK-9132: ------------------------------------------------------------- Commit c7ad1b6083c45f8292ed31d8039608a116b47eeb in cloudstack's branch refs/heads/4.7 from [~remibergsma] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=c7ad1b6 ] Merge pull request #1319 from nitin-maharana/CloudStack-Nitin15_4.7 CLOUDSTACK-9132: API createVolume takes empty string for name parameterSteps to Reproduce: ================ Create a volume using createVolume API where parameter name is empty. It creates a volume with empty name. But the name parameter is mandatory.(Issue) Expected Behaviour: ================ It shouldn't create a volume with an empty name. Error should be returned. Solution: ======= Added a condition to check in case of empty string. If the name is an empty string, it generates a random name for the volume. Made the name field optional in UI as well as in API. * pr/1319: CLOUDSTACK-9132: API createVolume takes empty string for name parameter Signed-off-by: Remi Bergsma > API createVolume takes empty string for name parameter > ------------------------------------------------------ > > Key: CLOUDSTACK-9132 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9132 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Reporter: Nitin Kumar Maharana > > Steps to Reproduce: > ================ > Create a volume using createVolume API where parameter name is empty. > It creates a volume with empty name. > But the name parameter is mandatory.(Issue) > Expected Behaviour: > ================ > It shouldn't create a volume with an empty name. Error should be returned. -- This message was sent by Atlassian JIRA (v6.3.4#6332)