Juan Hernandez has uploaded a new change for review. Change subject: restapi: Fix access to current user ......................................................................
restapi: Fix access to current user The code that extracts the current user from the backend stores VdcQueryReturnValue instead of the DbUser it contains. As a result several places where the user is needed fail with a NPE, as no object is found assciated to the DbUser class. Change-Id: I2dae86a0ab152df2971f55d663cf44f4d239f5e9 Bug-Url: https://bugzilla.redhat.com/1119862 Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com> (cherry picked from commit c5413a3fc8748d1a260a06a013bf5279799b25e4) --- M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/SessionProcessor.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/52/30252/1 diff --git a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/SessionProcessor.java b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/SessionProcessor.java index 7061103..94e1015 100644 --- a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/SessionProcessor.java +++ b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/SessionProcessor.java @@ -66,7 +66,7 @@ current.set(backend.runPublicQuery( VdcQueryType.GetValueBySession, new GetValueBySessionQueryParameters(engineSessionId, "user") - )); + ).getReturnValue()); return null; } -- To view, visit http://gerrit.ovirt.org/30252 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2dae86a0ab152df2971f55d663cf44f4d239f5e9 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5 Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches