Skip to content

Audit EHR notification events#268

Merged
labkey-martyp merged 2 commits into
release25.7-SNAPSHOTfrom
25.7_fb_audit_ehr_notif
Oct 29, 2025
Merged

Audit EHR notification events#268
labkey-martyp merged 2 commits into
release25.7-SNAPSHOTfrom
25.7_fb_audit_ehr_notif

Conversation

@labkey-martyp

Copy link
Copy Markdown

Rationale

Add auditing to EHR notifications. These are deemed critical for EHR clients and auditing is desired for their settings.

Related Pull Requests

  • TBD

Changes

  • Add auditing to setServiceEnabled, setUser, setReturnEmail, setActive and updateSubscriptions
  • Clean up some deprecated HTMLViews

@labkey-martyp labkey-martyp merged commit c4d5b64 into release25.7-SNAPSHOT Oct 29, 2025
9 checks passed
@labkey-martyp labkey-martyp deleted the 25.7_fb_audit_ehr_notif branch October 29, 2025 16:41
labkey-martyp added a commit that referenced this pull request Jun 22, 2026
## Rationale

Two spots in LDKController rendered untrusted content as raw HTML. The
container-scoped-table inspection view is a correction to a previous
security fix (#268): the HTMLView cleanup there wrapped the whole string
in HtmlString.of, which escaped the literal <br>/<p> markup too — safe,
but it broke the intended formatting. This escapes only the dynamic
validation messages (which can contain arbitrary content from direct DB
inserts that bypass the user schema) while preserving the markup. The
invalid-redirect error message separately echoed the user-supplied URL
via HtmlString.unsafe, so it is now escaped.

## Related Pull Requests

- #268

## Changes

- Container-scoped-table inspection view: escape each validation message
with PageFlowUtil.filter before joining with <br>, then wrap the
assembled markup in HtmlString.unsafe — fixing the over-escaping
introduced by #268 while keeping the output safe.
- Invalid-redirect error message: switch the user-supplied URL from
HtmlString.unsafe to HtmlString.of so it is escaped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants