Description of problem:
When attempting to attach a non-existent disk to a VM the operation will fail with an NPE.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Use REST API to attach a non existent disk to a VM
CDA message explaining the disk does not exist.
Tried to attach a non-existent disk to a VM.
I don't get NPE, but, a wrong error message is shown in the CDA:
2014-08-26 11:58:29,221 WARN [org.ovirt.engine.core.bll.AttachDiskToVmCommand] (ajp--127.0.0.1-8702-2) [19e0cd33] CanDoAction of action AttachDiskToVm failed. Reasons:VAR__ACTION__ATTACH_ACTION_TO,VAR__TYPE__VM_D
<detail>[User is not authorized to perform this action.]</detail>
Opened a bug on this https://bugzilla.redhat.com/show_bug.cgi?id=1133841 , verifying this one.
Verified using ovirt-3.5 RC1.1
oVirt 3.5 has been released and should include the fix for this issue.