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

ASF subversion and git services commented on CLOUDSTACK-8890:
-------------------------------------------------------------

Commit 73c7ad9a4a409cba7f897c848145cbc7f6f96ae4 in cloudstack's branch 
refs/heads/master from [~widodh]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=73c7ad9 ]

Merge pull request #878 from borisroman/CLOUDSTACK-8890

[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!

* pr/878:
  Added isEmpty() check to prevent nullPointerException.

Signed-off-by: Wido den Hollander <[email protected]>


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

Reply via email to