After some more debugging and digging, it looks like the parameter map in the request do change after request forward. As the J2EE runtime seems to merge the additional query string parameters in the forward URL into the parameter map of the http request being forwarded. Therefore I am not sure if the logic in the PrettyFacesWrapperRequest holds true that after the first time accessing the parameter map that it will not change therefore safe to cache them.
In case of request forward it seems that depend on where you call the super.getParameterMap, you might get a different return from it when you call it before the forward and after the forward.
I would love to get some insight in how to best handle or fix this problem. I won’t mind patch the code and submit to the framework.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.