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);