Oved Ourfali has uploaded a new change for review. Change subject: webadmin: set the engine session ID as the reports token ......................................................................
webadmin: set the engine session ID as the reports token Recent changes in the engine set the session ID differently. In the past it was identical to the JSESSIONID, but now it is a generated one. This patch sets the reports SSO token to the returned session ID upon login, which is the engine-generated session ID. Change-Id: Id57589fb6266ca513607f474070bd9769e31c2e5 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1122582 Signed-off-by: Oved Ourfali <[email protected]> --- M frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GenericApiGWTServiceImpl.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/49/30649/1 diff --git a/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GenericApiGWTServiceImpl.java b/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GenericApiGWTServiceImpl.java index 88d0c0d..779129b 100644 --- a/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GenericApiGWTServiceImpl.java +++ b/frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GenericApiGWTServiceImpl.java @@ -182,7 +182,7 @@ params.setActionType(loginType); VdcLoginReturnValueBase returnValue = (VdcLoginReturnValueBase) getBackend().login(params); if (returnValue.getSucceeded()) { - this.getThreadLocalResponse().addHeader("OVIRT-SSO-TOKEN", getSession().getId()); //$NON-NLS-1$ + this.getThreadLocalResponse().addHeader("OVIRT-SSO-TOKEN", returnValue.getSessionId()); //$NON-NLS-1$ getSession().setAttribute(SessionConstants.HTTP_SESSION_ENGINE_SESSION_ID_KEY, returnValue.getSessionId()); //$NON-NLS-1$) } return returnValue; -- To view, visit http://gerrit.ovirt.org/30649 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id57589fb6266ca513607f474070bd9769e31c2e5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5 Gerrit-Owner: Oved Ourfali <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
