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 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/93/30593/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 72bfbf0..ca76d12 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/30593 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id57589fb6266ca513607f474070bd9769e31c2e5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Oved Ourfali <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
