From 40aec619f873e7d1cfe65729e653e194ab3d2ccc Mon Sep 17 00:00:00 2001 From: iroqueta Date: Thu, 4 Sep 2025 15:39:05 -0300 Subject: [PATCH] The GAM procedures that call the standard classes to validate the user could not use anything related to the context, such as reading a variable from an HTTP request, because the request did not have the ModelContext set at the time the proc was called. Issue: 205865 --- java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java index 604daeea5..fb0732781 100644 --- a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java +++ b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java @@ -142,6 +142,7 @@ protected void callExecute(String method, IHttpServletRequest req, IHttpServletR } ModelContext modelContext = ModelContext.getModelContext(getClass()); modelContext.setHttpContext(httpContext); + httpContext.setContext(modelContext); ApplicationContext.getInstance().setPoolConnections(!Namespace.createNamespace(modelContext).isRemoteGXDB()); String loginObject = Application.getClientContext().getClientPreferences().getProperty("IntegratedSecurityLoginWeb", ""); loginObject = GXutil.getClassName(loginObject);