You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2024/01/19 06:15:00 UTC

[jira] [Resolved] (WW-5374) CspInterceptor reportUri with context

     [ https://issues.apache.org/jira/browse/WW-5374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart resolved WW-5374.
-------------------------------
    Resolution: Fixed

> 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: 1h 40m
>  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)