Skip to content

Commit

Permalink
Initalize Stream in HttpContex when GAM redirect (#910)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
iroqueta authored Nov 19, 2024
1 parent 0acb1e3 commit 15891fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ protected void callExecute(String method, IHttpServletRequest req, IHttpServletR
}
else
{
init(httpContext);
if (IntegratedSecurityLevel() == SECURITY_GXOBJECT)
{
httpContext.doNotCompress(true);
Expand Down Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit 15891fb

Please sign in to comment.