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

ASF GitHub Bot commented on CLOUDSTACK-9132:
--------------------------------------------

Github user nitin-maharana commented on the pull request:

    https://github.com/apache/cloudstack/pull/1206#issuecomment-164366344
  
    API with non-empty name:
    ====================
    
http://10.102.192.122:8080/client/api?command=createVolume&response=json&name=TempVolume&zoneId=18b1cb1a-bb8b-4e3d-aab8-a48475ed3c60&diskOfferingId=dc8a8d64-34a6-481e-99f9-89a49ee94824&size=1&_=1450077422731
    
    
![ss_withname_nitin](https://cloud.githubusercontent.com/assets/12583725/11775056/9b18f778-a261-11e5-91d5-05b79e6d31f0.png)
    
    
    API with empty name:
    =================
    
http://10.102.192.122:8080/client/api?command=createVolume&response=json&name=&zoneId=18b1cb1a-bb8b-4e3d-aab8-a48475ed3c60&diskOfferingId=dc8a8d64-34a6-481e-99f9-89a49ee94824&size=1&_=1450077422731
    
    
![ss_withoutname_nitin](https://cloud.githubusercontent.com/assets/12583725/11775062/a68f66c8-a261-11e5-9456-4e7eece196fb.png)



> 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)

Reply via email to