Skip to content

Commit 46f2f75

Browse files
committed
- Force Add of Querystring parameters in Java/Tomcat7 with IBM WebSphere
( were being lost in the redirect from the filter)
1 parent bfc293a commit 46f2f75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java/src/main/java/com/genexus/filters/APIObjectFilter.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public class APIObjectFilter extends Filter {
2121
private ArrayList<String> appPath = new ArrayList<String>();
2222
static final String PRIVATE_DIR="private";
2323
static final String WEB_INFO="WEB-INF";
24+
static final String REST_SUBPART = "/rest/";
25+
static final String QS_SEP = "?";
26+
2427
public static final Logger logger = LogManager.getLogger(APIObjectFilter.class);
2528

2629
public void doFilter(IServletRequest request, IServletResponse response, IFilterChain chain) throws Exception {
@@ -36,7 +39,7 @@ public void doFilter(IServletRequest request, IServletResponse response, IFilte
3639
}
3740
}
3841
if(isPath) {
39-
String fwdURI = "/rest/" + path;
42+
String fwdURI = REST_SUBPART + path + QS_SEP + httpRequest.getQueryString();
4043
logger.info("Forwarding from " + path +" to: " + fwdURI) ;
4144
httpRequest.getRequestDispatcher(fwdURI).forward(request,response);
4245
}

0 commit comments

Comments
 (0)