Skip to content

Bugfix: a namespace in the inclusive namespace list should be treated… #163

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

Merged
merged 4 commits into from
Nov 8, 2018

Conversation

gcharnock
Copy link
Contributor

@gcharnock gcharnock commented Nov 2, 2018

… where non-exclusive and thus written out on the root note of the canonical document.

According to the WC3 specification, namespaces in the inclusive namespace list should be treated as if by the exclusive algorithm. For a document subset, the exclusive algorithm copies namespaces from ancestor nodes to the root of the document in canonical from (see https://www.w3.org/TR/xml-c14n11/#Example-DocSubsets)

This patch ensures that such ancestor namespaces are treated correctly as well as adding a test for this behavior.

Copy link
Collaborator

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise

@LoneRifle LoneRifle merged commit a0de707 into node-saml:master Nov 8, 2018
LoneRifle added a commit that referenced this pull request Jan 28, 2019
PR #163 modifies the root node, which may be a problem when creating
the signature value, which uses a dummy signature wrapper. Revert
first, investigate later.

This attempts to quick fix #167 and #164

This reverts commit a0de707.
@cjbarth cjbarth added the bug label Jul 21, 2023
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.

4 participants