Ramesh N has uploaded a new change for review. Change subject: engine: set Application mode in current when session is reused ......................................................................
engine: 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 <[email protected]> --- M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/LoginValidator.java 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/67/22367/1 diff --git a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/LoginValidator.java b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/LoginValidator.java index 6d0273b..3684b1f 100644 --- a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/LoginValidator.java +++ b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/security/auth/LoginValidator.java @@ -137,6 +137,7 @@ // cache user in Current so that it will be available // for logoff action on postProcess() traversal current.set(ret.getReturnValue()); + current.set(getApplicationMode()); } private boolean loginFailure(Principal principal, List<String> reasons) { -- To view, visit http://gerrit.ovirt.org/22367 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I972d62e2bad77b6674bf8666ed4aa041bf8319e0 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ramesh N <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
