Skip to content

Render visualizer errors as text and encode URL-derived names - #193

Merged
floydtree merged 5 commits into
ocsf:mainfrom
floydtree:fix/visualizer-error-rendering
Nov 3, 2026
Merged

floydtree merged 5 commits into
ocsf:mainfrom
floydtree:fix/visualizer-error-rendering

Conversation

@floydtree

@floydtree floydtree commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Testing

Ran the server locally against a 1.10.0-dev compiled schema:

  • /visualizer?class=authentication, class=win/registry_key_activity, object=user, object=win/reg_key and category=iam all load and render as before, with no failed requests.
  • Error messages in both the overlay and the detail panel render as plain text.

The visualizer interpolated error messages into innerHTML and put the
class/object query values into API paths unencoded. Set error text with
textContent, and encode each segment of URL-supplied names (keeping the
extension/name separator) before building API paths.

Signed-off-by: Rajas <panat.r@northeastern.edu>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ubuntu-latest now resolves to ubuntu-26.04, which has no Erlang/OTP 25
builds on hex.pm, so erlef/setup-beam fails before compiling. Pin the
image the last passing run used.

Signed-off-by: Rajas <panat.r@northeastern.edu>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@floydtree
floydtree requested a review from zschmerber November 2, 2026 20:34
floydtree and others added 2 commits November 2, 2026 15:38
Signed-off-by: Rajas <panat.r@northeastern.edu>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rajas <panat.r@northeastern.edu>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zschmerber
zschmerber previously approved these changes Nov 2, 2026
Signed-off-by: Rajas <89877409+floydtree@users.noreply.github.com>
@floydtree
floydtree merged commit c451193 into ocsf:main Nov 3, 2026
1 check passed
@floydtree
floydtree deleted the fix/visualizer-error-rendering branch November 3, 2026 13:48
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.

4 participants