Change in ovirt-engine[ovirt-engine-3.5]: core: dont use getVmPayload query for updateVmVersionCommand

tnisan at redhat.com tnisan at redhat.com
Wed Oct 22 11:03:59 UTC 2014


Tal Nisan has submitted this change and it was merged.

Change subject: core: dont use getVmPayload query for updateVmVersionCommand
......................................................................


core: dont use getVmPayload query for updateVmVersionCommand

when calling getVmPayloadQuery from updateVmVersionCommand there is NPE
because the current-user is null, since this command is executed
internaly.

replaced the call to the query with a simple db query

Change-Id: I37472aff69087e23cf4206819c84c0e0f115fcc2
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1148379
Signed-off-by: Omer Frenkel <ofrenkel at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/UpdateVmVersionCommand.java
1 file changed, 14 insertions(+), 8 deletions(-)

Approvals:
  Omer Frenkel: Verified
  Arik Hadas: Looks good to me, approved



-- 
To view, visit http://gerrit.ovirt.org/34320
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I37472aff69087e23cf4206819c84c0e0f115fcc2
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Arik Hadas <ahadas at redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofrenkel at redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski at gmail.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list