fix(tdf3): remove TODO from customer-facing error message - #952
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough
ChangesError Message Update in splitLookupTableFactory
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the error message thrown when duplicate Key Access Server (KAS) URLs are detected within a split, replacing a placeholder TODO error with a user-friendly message and adding a detailed TODO comment for future implementation. The review feedback suggests simplifying the multi-line template literal concatenation into a single template literal string to improve readability.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
If these changes look good, signoff on them with: If they aren't any good, please remove them with: |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@lib/tdf3/src/tdf.ts`:
- Around line 729-734: The error message thrown in the InvalidFileError for
duplicate KAS URLs has been changed, but the test assertion in
lib/tests/mocha/unit/tdf.spec.ts that validates this error message still expects
the old message format. Find the test that asserts on the error message for
duplicate KAS URL scenarios and update the expected string to match the new
error message about "Multiple keys detected for Key Access Server" that is now
being thrown in the InvalidFileError constructor call.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0c097966-ee22-4a84-8a6c-eba0c0a1ef51
📒 Files selected for processing (1)
lib/tdf3/src/tdf.ts
Replace 'TODO: Fallback to no split ids' error with user-friendly message. Keep developer TODO as code comment for future implementation. Fixes DSPX-3454 Signed-off-by: Aaron Hopper <aaron.hopper@virtru.com>
Signed-off-by: Aaron Hopper <aaron.hopper@virtru.com>
Update test to match new customer-friendly error message. Signed-off-by: Aaron Hopper <aaron.hopper@virtru.com>
b562811 to
9bff8cc
Compare
Update TODO to reflect correct solution approach: use KID information already present in each KAO to differentiate keys from same KAS, rather than falling back to no split ids. Addresses ntrevino's review feedback on PR #952. DSPX-3454
|



Summary
Fixes DSPX-3454 - removes TODO from customer-facing error message in Secure Viewer.
A customer reported seeing:
"TODO: Fallback to no split ids. Repetition found for..."in error output when decryption failed.Changes
"Unable to decrypt: Multiple keys detected for Key Access Server [URL]. Please contact your administrator."Impact
Related
Summary by CodeRabbit