From b83514bf79ef29ccd96722874c878439629aee48 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Wed, 30 Oct 2024 19:54:46 -0300 Subject: [PATCH] Initalize Stream in HttpContex when GAM redirect When GAM redirect to login o notAuthorized page httpContext must set the Stream. This was made calling init, but this method do a lot of more things that are not necessary. Now the setStream is only callead instead. Issue 202113 --- java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java index bd2b365b4..604daeea5 100644 --- a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java +++ b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java @@ -118,7 +118,6 @@ protected void callExecute(String method, IHttpServletRequest req, IHttpServletR } else { - init(httpContext); if (IntegratedSecurityLevel() == SECURITY_GXOBJECT) { httpContext.doNotCompress(true); @@ -177,6 +176,7 @@ else if (IntegratedSecurityLevel() == SECURITY_LOW) GXSecurityProvider.getInstance().checksession(-2, modelContext, reqUrl, flag); if(!flag[0]) { + httpContext.setStream(); ((HttpContextWeb)httpContext).redirect(loginObjectURL, true); } else @@ -196,6 +196,7 @@ else if (IntegratedSecurityLevel() == SECURITY_LOW) String notAuthorizedObject = Application.getClientContext().getClientPreferences().getProperty("IntegratedSecurityNotAuthorizedWeb", ""); notAuthorizedObject = GXutil.getClassName(notAuthorizedObject); String notAuthorizedObjectURL = URLRouter.getURLRoute(notAuthorizedObject.toLowerCase(), new String[]{}, new String[]{}, httpContext.getRequest().getContextPath(), modelContext.getPackageName()); + httpContext.setStream(); if (flag[0]) { ((HttpContextWeb)httpContext).redirect(notAuthorizedObjectURL, true);