Skip to content

Conversation

lukaszlenart
Copy link
Member

Small refactoring of how CspSettings class is created plus additional tests. See #913 for more details.

Closes WW-5400

@lukaszlenart
Copy link
Member Author

/cc: @eschulma

@asfgit asfgit force-pushed the feature/WW-5400-refactor branch from eae2c83 to 3a6ad5a Compare June 5, 2024 05:40
Co-authored-by: Kusal Kithul-Godage <[email protected]>
@lukaszlenart lukaszlenart requested a review from kusalk June 6, 2024 04:32
Copy link

sonarqubecloud bot commented Jun 6, 2024

@lukaszlenart lukaszlenart merged commit cf34f0d into master Jun 10, 2024
@lukaszlenart lukaszlenart deleted the feature/WW-5400-refactor branch June 10, 2024 05:02
@eschulma
Copy link
Contributor

eschulma commented Jun 2, 2025

@lukaszlenart there is a problem with the refactoring here that I only caught now. The reportUri has been modified to automatically include the servlet context! This is the wrong thing to do for the (many of us) that send our reportUri's to an external service to monitor them. I use an absolute URL, and this is breaking it.

@eschulma
Copy link
Contributor

eschulma commented Jun 2, 2025

@lukaszlenart ok, I did figure out that there is another variable, prependServletContext, that can be set to false to prevent this behavior. I guess I question setting the default to true, particularly if someone already put in an absolute URL. But at least things can work.

@lukaszlenart
Copy link
Member Author

@eschulma feel free to open a JIRA ticket
https://issues.apache.org/jira/projects/WW/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants