Skip to content

Commit 15891fb

Browse files
authored
Initalize Stream in HttpContex when GAM redirect (#910)
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
1 parent 0acb1e3 commit 15891fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ protected void callExecute(String method, IHttpServletRequest req, IHttpServletR
118118
}
119119
else
120120
{
121-
init(httpContext);
122121
if (IntegratedSecurityLevel() == SECURITY_GXOBJECT)
123122
{
124123
httpContext.doNotCompress(true);
@@ -177,6 +176,7 @@ else if (IntegratedSecurityLevel() == SECURITY_LOW)
177176
GXSecurityProvider.getInstance().checksession(-2, modelContext, reqUrl, flag);
178177
if(!flag[0])
179178
{
179+
httpContext.setStream();
180180
((HttpContextWeb)httpContext).redirect(loginObjectURL, true);
181181
}
182182
else
@@ -196,6 +196,7 @@ else if (IntegratedSecurityLevel() == SECURITY_LOW)
196196
String notAuthorizedObject = Application.getClientContext().getClientPreferences().getProperty("IntegratedSecurityNotAuthorizedWeb", "");
197197
notAuthorizedObject = GXutil.getClassName(notAuthorizedObject);
198198
String notAuthorizedObjectURL = URLRouter.getURLRoute(notAuthorizedObject.toLowerCase(), new String[]{}, new String[]{}, httpContext.getRequest().getContextPath(), modelContext.getPackageName());
199+
httpContext.setStream();
199200
if (flag[0])
200201
{
201202
((HttpContextWeb)httpContext).redirect(notAuthorizedObjectURL, true);

0 commit comments

Comments
 (0)