Skip to content

Remove check now covered by dependency - #215

Merged
cjbarth merged 1 commit into
node-saml:masterfrom
cjbarth:remove-old-code
Nov 15, 2022
Merged

Remove check now covered by dependency#215
cjbarth merged 1 commit into
node-saml:masterfrom
cjbarth:remove-old-code

Conversation

@cjbarth

@cjbarth cjbarth commented Nov 15, 2022

Copy link
Copy Markdown
Collaborator

Description

After a security fix was made in @xmldom/xmldom@0.8.5, some code is no longer needed in node-saml; removing.

@cjbarth cjbarth added the chore label Nov 15, 2022
@codecov

codecov Bot commented Nov 15, 2022

Copy link
Copy Markdown

Codecov Report

Merging #215 (68310b7) into master (d777940) will increase coverage by 0.17%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #215      +/-   ##
==========================================
+ Coverage   80.53%   80.70%   +0.17%     
==========================================
  Files          11       11              
  Lines         822      819       -3     
  Branches      252      251       -1     
==========================================
- Hits          662      661       -1     
+ Misses         69       68       -1     
+ Partials       91       90       -1     
Impacted Files Coverage Δ
src/xml.ts 79.48% <ø> (+1.15%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@cjbarth
cjbarth merged commit 38b8cc0 into node-saml:master Nov 15, 2022
@cjbarth
cjbarth deleted the remove-old-code branch November 15, 2022 18:09
@RopoMen

RopoMen commented Nov 16, 2022

Copy link
Copy Markdown
Contributor

@cjbarth your comment in that closed PR

However, as I type that, I realize they have put in tests to make sure that doesn't happen...

Remember that node-saml has its own test for "multiple roots" to ensure that even if xmldom makes some stupid change, tests in this projects will catch it, see: https://github.com/node-saml/node-saml/blob/master/test/test-signatures.spec.ts#L72-L77

That test will fail if xmldom is not causing that error what test is expecting. Error is thrown over here https://github.com/node-saml/node-saml/blob/master/src/xml.ts#L190

(and it is best that node-saml is not "translating" those xmldom errors to our own versions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants