Description of problem:
When trying to sparsify a direct lun via the REST API, a NullPointerException is returned as a "500 Internal Server Error".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have a direct lun.
2. Try to sparsify it via the REST API:
500 Internal Server Error
Should be passed to the backend and let it return an error message that direct luns can't be sparsified.
*** Bug 1418255 has been marked as a duplicate of this bug. ***
Trying with the new build rhevm-184.108.40.206-0.1.el7.noarch I do not get NullPointerException any more, but still the detail of the failure is incorrect, I get:
<detail>[User is not authorized to perform this action.]</detail>
This is although I'm running the cmd as admin with superUser permissions on the vm, just the same as other vms with which the sparsify action works or fails with specific msg, e.g.
[Cannot sparsify Virtual Disk. Sparsifying is not supported for preallocated disk bla_Disk1.]
Please check it out.
Verifying the bug as it handles the NullPointerException issue, but opening a new one regarding the new issue: https://bugzilla.redhat.com/show_bug.cgi?id=1428404