Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initalize Stream in HttpContex when GAM redirect #910

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading