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(a)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(a)redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayilsa(a)redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern(a)redhat.com>
Gerrit-Reviewer: Ori Liel <oliel(a)redhat.com>
Gerrit-Reviewer: Ramesh N <rnachimu(a)redhat.com>
Gerrit-Reviewer: Sahina Bose <sabose(a)redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtripat(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server