cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8890) Can no longer create VPC or other basic resources on projects because of CLOUDSTACK-7908
Date Wed, 23 Sep 2015 13:18:04 GMT

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

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

GitHub user borisroman opened a pull request:

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

    [4.6][BLOCKER]CLOUDSTACK-8890: Added isEmpty() check to prevent nullPointerException.

    Check if the list is empty before trying to get the first entry. If the list is empty,
in example when dealing with projects, it will user the caller user id.
    
    Tests to verify working order:
    1. Deploy ACS
    2. Create project
    3. Create resource in project -> Should succeed!

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

    $ git pull https://github.com/borisroman/cloudstack CLOUDSTACK-8890

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

    https://github.com/apache/cloudstack/pull/878.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 #878
    
----
commit 80cb3adad079be639331046f844b34a69079c224
Author: Boris Schrijver <boris@pcextreme.nl>
Date:   2015-09-23T13:01:03Z

    Added isEmpty() check to prevent nullPointerException.

----


> Can no longer create VPC or other basic resources on projects because of CLOUDSTACK-7908
> ----------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8890
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8890
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.6.0
>            Reporter: Patrick D.
>            Priority: Blocker
>
> Steps to reproduce:
> - Create project
> - Try to create VPC in project
> - Fails
> This does not work for any resource owned by a project. The implemented code gets the
first user of the owner account, but in the case of a project (an account), there are no users,
which cause and IndexOutOfBoundsException -> (https://issues.apache.org/jira/browse/CLOUDSTACK-7908)



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

Mime
View raw message