[ https://issues.apache.org/jira/browse/WICKET-7107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840817#comment-17840817 ]
ASF GitHub Bot commented on WICKET-7107: ---------------------------------------- dr0ps opened a new pull request, #846: URL: https://github.com/apache/wicket/pull/846 WICKET-7107 seems to not be an issue in Wicket core but rather a shortcoming of BaseWicketTester. WicketTesterServletWebResponse does implement IMetaDataBufferingWebResponse but fails to buffer header data. Headers are therefore lost in some cases. I took the provided test from WICKET-7107 and reduced it to the minimum required to demonstrate the issue. I also added the header buffering to BaseWicketTester#WicketTesterServletWebResponse. I believe that this is an improvement but it ultimately falls short of actually testing wicket core functionality. It only tests the test infrastructure. > CSP Header not rendered when using RedirectPolicy.AUTO_REDIRECT > --------------------------------------------------------------- > > Key: WICKET-7107 > URL: https://issues.apache.org/jira/browse/WICKET-7107 > Project: Wicket > Issue Type: Bug > Components: wicket-core > Affects Versions: 9.16.0 > Reporter: Dirk Forchel > Priority: Major > Attachments: myproject.zip > > > If we redirect to another Web Page and use the RedirectPolicy.AUTO_REDIRECT, > this results in the CSP directives being missing in the head of the result > page. > I've attached a Quickstart with the use-case (see RedirectPage.java) and an > additional Test for the CSPRequestCycleListener with different page classes > as test parameters. > Relates to https://issues.apache.org/jira/browse/WICKET-7028 -- This message was sent by Atlassian Jira (v8.20.10#820010)