Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update the PortletsRESTController.getRenderedPortlet method (AP… #1480

Merged
merged 1 commit into from
Jan 3, 2019

Conversation

drewwills
Copy link
Contributor

@drewwills drewwills commented Jan 3, 2019

…I @RequestMapping '/v4-3/portlet/{fname}.html') so that it prepares the PortalHttpServletRequestWrapper and PortalHttpServletResponseWrapper in the same way that UrlCanonicalizingFilter does (for typical portal requests)

Checklist
Description of change

This change fixes an issue with the /v4-3/portlet/{fname}.html API endpoint where some portlets would fail to render because PortalHttpServletRequestWrapper and PortalHttpServletResponseWrapper objects were not set up (and passed downstream to the rest of the portal) in the manner that UrlCanonicalizingFilter does it.

This change also refactors creating and properly initializing instances of these wrapper classes to a new @Service bean -- PortalHttpServletFactoryService -- so that UrlCanonicalizingFilter and PortletsRESTController can leverage the same code (DRY principal).

…RequestMapping '/v4-3/portlet/{fname}.html') so that it prepares the PortalHttpServletRequestWrapper and PortalHttpServletResponseWrapper in the same way that UrlCanonicalizingFilter does (for typical portal requests)
@drewwills drewwills merged commit 2e808e1 into uPortal-Project:master Jan 3, 2019
@drewwills drewwills deleted the fix-portlet-html-api branch January 3, 2019 21:34
@ChristianMurphy ChristianMurphy added this to the 5.4.1 milestone Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants