brianchandotcom/liferay-portal — pull request #21795 by shuyangzhou (2014-10-26 19:56:14+00:00)
Title: LPS-51123 Nested NamespaceServletRequest wrapping lost namespaces.

@kameshsampath and @rotty3000

I was right about the guessing, this has nothing to do with DynamicServletRequest, but a problem of its subclass NamespaceServletRequest.

You did not lose any attribute, like I explained in https://github.com/shuyangzhou/liferay-portal/pull/781, you simply lost the namespaces during the unwrap/rewrap process, which makes your attribute fetching with old names failed.

And removing the "setRequest(dynamicRequest.getRequest());" is not acceptable, see how it will break things that I explained in https://github.com/shuyangzhou/liferay-portal/pull/781

This fix simply allows NamespaceServletRequest to reattach its namespaces during unwrap/rewrap process, it should fix your issue.

Let me know if you still see any problem.