-
Notifications
You must be signed in to change notification settings - Fork 189
fix: Support nested enveloped signature location (#525) #526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix: Support nested enveloped signature location (#525) #526
Conversation
Update XPath query to find Signature elements at any depth within the document, not just direct children. This fixes an issue where signatures nested within other elements were not properly detected and removed.
📝 WalkthroughWalkthroughThis change fixes a bug where the enveloped signature transform failed to locate signatures nested within child elements. The XPath selector was updated to search all descendants instead of just immediate children, and a corresponding test case was added to validate the fix works correctly. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-10-22T21:50:05.454ZApplied to files:
📚 Learning: 2025-10-22T21:03:38.354ZApplied to files:
📚 Learning: 2025-10-25T14:41:13.728ZApplied to files:
📚 Learning: 2025-10-22T21:50:05.454ZApplied to files:
🧬 Code graph analysis (1)test/signature-integration-tests.spec.ts (2)
🔇 Additional comments (2)
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 |
Description
This PR fixes an issue where the enveloped signature transformation was unable to find and remove Signature elements that were nested within other elements in the document.
Changes
Related Issue
Fixes #525
Testing
Added a test case that verifies signatures can be validated when the Signature element is nested within other elements in the document structure.
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.