Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions java/src/main/java/com/genexus/webpanels/GXMultiCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

private String parsePostData(int len, IServletInputStream in)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
2 changes: 2 additions & 0 deletions java/src/main/java/com/genexus/webpanels/GXOAuthLogout.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
2 changes: 2 additions & 0 deletions java/src/main/java/com/genexus/webpanels/GXOAuthUserInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}


protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ protected int IntegratedSecurityLevel( )
protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}
}

protected String EncryptURLParameters() {return "NO";};

private String getExtension(String contentType)
{
Expand Down
26 changes: 17 additions & 9 deletions java/src/main/java/com/genexus/webpanels/GXResourceProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,25 @@ protected void doExecute(HttpContext context) throws Exception
}
}
context.sendResponseStatus(404, "Resource not found");
} protected boolean IntegratedSecurityEnabled( )
{
return false;
} protected int IntegratedSecurityLevel( )
{
return 0;
} protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected boolean IntegratedSecurityEnabled( )
{
return false;
}

protected int IntegratedSecurityLevel( )
{
return 0;
}

protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
}
Expand Down
2 changes: 2 additions & 0 deletions java/src/main/java/com/genexus/webpanels/GXValidService.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
16 changes: 13 additions & 3 deletions java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public abstract class GXWebObjectStub extends HttpServlet
protected abstract boolean IntegratedSecurityEnabled();
protected abstract int IntegratedSecurityLevel();
protected abstract String IntegratedSecurityPermissionPrefix();
protected abstract String EncryptURLParameters();

protected static final int SECURITY_GXOBJECT = 3;
protected static final int SECURITY_HIGH = 2;
Expand Down Expand Up @@ -97,10 +98,19 @@ protected void callExecute(String method, IHttpServletRequest req, IHttpServletR
boolean[] flag = new boolean[]{false};
boolean[] permissionFlag = new boolean[]{false};
String reqUrl = req.getRequestURL().toString();
String queryString = req.getQueryString();
if (queryString != null)
if (req.getMethod().equals("POST"))
{
reqUrl += "?"+queryString;
if (EncryptURLParameters().equals("SESSION"))
reqUrl = "";
else
reqUrl = req.getHeader("Referer");
}
else
{
String queryString = req.getQueryString();
if (queryString != null) {
reqUrl += "?" + queryString;
}
}
ModelContext modelContext = ModelContext.getModelContext(getClass());
modelContext.setHttpContext(httpContext);
Expand Down
4 changes: 3 additions & 1 deletion java/src/main/java/com/genexus/webpanels/LOGOUTDummy.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ protected int IntegratedSecurityLevel( )
protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
4 changes: 3 additions & 1 deletion java/src/main/java/com/genexus/webpanels/SSODummy.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ protected int IntegratedSecurityLevel( )
protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ protected int IntegratedSecurityLevel( )
protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ protected int IntegratedSecurityLevel( )
protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ protected int IntegratedSecurityLevel( )
protected String IntegratedSecurityPermissionPrefix( )
{
return "";
}
}

protected String EncryptURLParameters() {return "NO";};

protected void init(HttpContext context )
{
Expand Down