Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions core/src/org/labkey/core/admin/AdminController.java
Original file line number Diff line number Diff line change
Expand Up @@ -11965,8 +11965,12 @@ public Object execute(SimpleApiJsonForm form, BindException errors) throws Excep
String urlString = cspReport.optString("document-uri", null);
if (urlString != null)
{
String path = new URLHelper(urlString).deleteParameters().getURIString();
if (null == reports.put(path, Boolean.TRUE) || _log.isDebugEnabled())
URLHelper urlHelper = new URLHelper(urlString);
// URL parameter that tells us to bypass suppression of redundant logging
// Used to make sure that tests of CSP logging are deterministic and convenient
boolean bypassCspDedupe = "true".equals(urlHelper.getParameter("bypassCspDedupe"));
String path = urlHelper.deleteParameters().getURIString();
if (null == reports.put(path, Boolean.TRUE) || _log.isDebugEnabled() || bypassCspDedupe)
{
// Don't modify forwarded reports; they already have user, ip, user-agent, etc. from the forwarding server.
boolean forwarded = jsonObj.optBoolean("forwarded", false);
Expand Down
Loading