[ https://issues.apache.org/jira/browse/WW-5374?focusedWorklogId=900394&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-900394 ]
ASF GitHub Bot logged work on WW-5374: -------------------------------------- Author: ASF GitHub Bot Created on: 18/Jan/24 10:30 Start Date: 18/Jan/24 10:30 Worklog Time Spent: 10m Work Description: sonarcloud[bot] commented on PR #845: URL: https://github.com/apache/struts/pull/845#issuecomment-1898211148 ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=845) **Quality Gate passed** Kudos, no new issues were introduced! [0 New issues](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=845&resolved=false&inNewCodePeriod=true) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=845&resolved=false&inNewCodePeriod=true) [93.3% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=845&metric=new_coverage&view=list) [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=845&metric=new_duplicated_lines_density&view=list) [See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=845) Issue Time Tracking ------------------- Worklog Id: (was: 900394) Time Spent: 1.5h (was: 1h 20m) > CspInterceptor reportUri with context > ------------------------------------- > > Key: WW-5374 > URL: https://issues.apache.org/jira/browse/WW-5374 > Project: Struts 2 > Issue Type: Improvement > Components: Core Interceptors > Affects Versions: 6.3.0 > Reporter: Andreas Sachs > Priority: Major > Fix For: 6.4.0 > > Time Spent: 1.5h > Remaining Estimate: 0h > > At the moment the reportURI has to start with a schema (http, https) or with > "/". But how can i add the context to the url? > > Example: > Action: /report.action > Application running in context "showcase". > Complete URL: [http://example.com/showcase/report.action] > > That means, that in the configuration i have to set reportUri = > /showcase/report.action. But the context should not be hardcoded in struts.xml > > Is there a parameter for the context? > > I would prefer the solution from ServletRedirectResult: an option to add the > context (PrependServletContext) > > > > -- This message was sent by Atlassian Jira (v8.20.10#820010)