Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5374

CspInterceptor reportUri with context

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.3.0
    • 6.4.0
    • Core Interceptors
    • None

    Description

      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)

       

       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            asachs Andreas Sachs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 50m
                1h 50m