Skip to content

V2.x - Nokogiri Upgrade Part 3 - Shim XMLSecurity so it raises deprecation warnings and errors#748

Merged
pitbulk merged 42 commits intoSAML-Toolkits:v2.xfrom
johnnyshields:v2.x-better-xml-security-shim
Mar 13, 2025
Merged

V2.x - Nokogiri Upgrade Part 3 - Shim XMLSecurity so it raises deprecation warnings and errors#748
pitbulk merged 42 commits intoSAML-Toolkits:v2.xfrom
johnnyshields:v2.x-better-xml-security-shim

Conversation

@johnnyshields
Copy link
Copy Markdown
Collaborator

@johnnyshields johnnyshields commented Mar 11, 2025

Previously for 2.x I was trying to make XMLSecurity backwards compatible. With the upcoming Nokogiri refactor, this is more difficult to do than I realized.

A better approach will be to simply shim the old XMLSecurity classes so they raise clear deprecations and NoMethodErrors if any one tries to use them--assuming they have any basic tests in their app, the tests will fail. Since XMLSecurity functionality is not the main focus of RubySaml anyway, this should be safe to do.

It may be possible to restore functionality to some of these methods after the Nokogiri migration is complete. We'll have to see.

@johnnyshields johnnyshields changed the title [READY] V2.x - Shim XMLSecurity so it raises deprecation warnings and errors [READY] V2.x - Nokogiri Upgrade Part 3 - Shim XMLSecurity so it raises deprecation warnings and errors Mar 11, 2025
@johnnyshields
Copy link
Copy Markdown
Collaborator Author

@pitbulk this is ready. Please merge in #754 first, then this one.

@pitbulk pitbulk merged commit 3b0a71b into SAML-Toolkits:v2.x Mar 13, 2025
29 checks passed
@pitbulk pitbulk changed the title [READY] V2.x - Nokogiri Upgrade Part 3 - Shim XMLSecurity so it raises deprecation warnings and errors V2.x - Nokogiri Upgrade Part 3 - Shim XMLSecurity so it raises deprecation warnings and errors Mar 19, 2025
bcgraham pushed a commit to vericred/ruby-saml that referenced this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants