Change in ovirt-engine[master]: restapi: set Application mode in current when session is reused

kmayilsa at redhat.com kmayilsa at redhat.com
Mon Dec 16 09:28:19 UTC 2013


Kanagaraj M has submitted this change and it was merged.

Change subject: restapi: set Application mode in current when session is reused
......................................................................


restapi: set Application mode in current when session is reused

   When client calls REST API with 'prefer: persistent-auth'
header and valid session ID, LoginValidator.validate(String sessionId)
will be called. But in this case application mode is not being
set in Current. Because of this, rsdl is returned with all the
links includeing data center and vm though the engine is running
only in GlusterOnly mode.

Change-Id: I972d62e2bad77b6674bf8666ed4aa041bf8319e0
Bug-Url: https://bugzilla.redhat.com/1042740
Signed-off-by: Ramesh Nachimuthu <rnachimu at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/LoginValidator.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/security/auth/LoginValidatorTest.java
2 files changed, 8 insertions(+), 0 deletions(-)

Approvals:
  Kanagaraj M: Looks good to me, approved
  Ramesh N: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I972d62e2bad77b6674bf8666ed4aa041bf8319e0
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ramesh N <rnachimu at redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayilsa at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: Ramesh N <rnachimu at redhat.com>
Gerrit-Reviewer: Sahina Bose <sabose at redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtripat at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list