Address SonarQube reliability/type findings in CLM sample flows#95
Merged
Conversation
Agent-Logs-Url: https://github.com/ApryseSDK/webviewer-samples/sessions/4a8541ca-c9e7-41ee-aa74-6d8e4306d442 Co-authored-by: DavidEGutierrez <172812369+DavidEGutierrez@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ApryseSDK/webviewer-samples/sessions/4a8541ca-c9e7-41ee-aa74-6d8e4306d442 Co-authored-by: DavidEGutierrez <172812369+DavidEGutierrez@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
[WIP] [WIP] Address SonarQube feedback for CLM demo feature pull request
Address SonarQube reliability/type findings in CLM sample flows
May 13, 2026
…package to webviewer-clm Co-authored-by: DavidEGutierrez <172812369+DavidEGutierrez@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ApryseSDK/webviewer-samples/sessions/b8ec9fcf-141d-4039-aee6-593a2df37578 Co-authored-by: DavidEGutierrez <172812369+DavidEGutierrez@users.noreply.github.com>
…ix XSS and arbitrary file read vulnerabilities Agent-Logs-Url: https://github.com/ApryseSDK/webviewer-samples/sessions/b8ec9fcf-141d-4039-aee6-593a2df37578 Co-authored-by: DavidEGutierrez <172812369+DavidEGutierrez@users.noreply.github.com>
…E, <= 11.8.0) Agent-Logs-Url: https://github.com/ApryseSDK/webviewer-samples/sessions/b8ec9fcf-141d-4039-aee6-593a2df37578 Co-authored-by: DavidEGutierrez <172812369+DavidEGutierrez@users.noreply.github.com>
|
DavidEGutierrez
approved these changes
May 15, 2026
DavidEGutierrez
left a comment
Collaborator
There was a problem hiding this comment.
These changes look good.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Follow-up to the SonarQube feedback on PR #94 for the CLM demo: this narrows down reliability and type-safety issues in the newly added CLM codepaths (auth/access control, agreement create/sign, template edit, login title rendering).
The update focuses on removing unsafe patterns and tightening typings without changing feature scope.
Access control cleanup
Agreement creation hardening
UserSelectItem/TemplateSelectItemtypes.Agreement signing safety
Coreaccess before document/annotation operations.Template edit safety
Coreexistence checks.Login page type correctness
ThemedTitleprops to match current refine typings (text,collapsed).Resources
Checklist
If you are adding a new sample
lerna.jsonwith the new sample nameIf you are removing an old sample
lerna.json