Skip to content

Commit 1d19382

Browse files
committed
When a proc with "Expose as web service" true and call protocol SOAP and REST where called in a SD panel, a User Information memory leak happens
Issue: 95079
1 parent d5a9bc7 commit 1d19382

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.util.Enumeration;
44

5+
import com.genexus.db.UserInformation;
56
import com.genexus.servlet.ServletException;
67
import com.genexus.servlet.http.ICookie;
78
import com.genexus.servlet.http.HttpServlet;
@@ -46,7 +47,11 @@ public GXWebObjectStub(int remoteHandle , ModelContext context)
4647
{
4748
this.remoteHandle = remoteHandle;
4849
this.context = context;
49-
localUtil = Application.getConnectionManager().createUserInformation(Namespace.getNamespace(context.getNAME_SPACE())).getLocalUtil();
50+
UserInformation ui = Application.getConnectionManager().getUserInformationNoException(remoteHandle);
51+
if (ui == null)
52+
localUtil = Application.getConnectionManager().createUserInformation(Namespace.getNamespace(context.getNAME_SPACE())).getLocalUtil();
53+
else
54+
localUtil = ui.getLocalUtil();
5055
}
5156

5257
private void dumpRequestInfo(HttpContext httpContext)

0 commit comments

Comments
 (0)