GitHub user nitin-maharana opened a pull request:

    https://github.com/apache/cloudstack/pull/1319

    CLOUDSTACK-9132: API createVolume takes empty string for name parameter

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

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nitin-maharana/CloudStack 
CloudStack-Nitin15_4.7

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1319.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1319
    
----
commit 55f8b32aa00baf0609f54891230269ed97bedb5a
Author: Nitin Kumar Maharana <nitin.mahar...@gmail.com>
Date:   2015-12-29T11:15:41Z

    CLOUDSTACK-9132: API createVolume takes empty string for name parameter
    
    Added conditions to check if the name is empty or blank.
    If it is empty or blank, then it generates a random name.
    Made the name field as optional in UI as well as in API.
    Added required unit tests.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to