Skip to content
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

[help] How do I use Noko_Node_Get_Struct in another project? #2594

Closed
radar opened this issue Jul 13, 2022 · 7 comments
Closed

[help] How do I use Noko_Node_Get_Struct in another project? #2594

radar opened this issue Jul 13, 2022 · 7 comments

Comments

@radar
Copy link
Contributor

radar commented Jul 13, 2022

What problem are you trying to solve?

This commit from Nokogiri caused our application to start failing on SAML requests.

This is due to the saml2 gem that we use, and a transitive dependency there called nokogiri-xmlsec-instructure. This project uses Data_Get_Struct, but since this commit in Nokogiri, it will now make that data an incorrect type, causing a TypeError:

      TypeError:
        wrong argument type Nokogiri::XML::Element (expected Data)

You can see this happen when running the tests on nokogiri-xmlsec-instructure.

I've attempted to submit [a pull request])(instructure/nokogiri-xmlsec-instructure#13) to fix this issue, but I am unsure if what I'm doing is correct or even possible. I'm more of a Ruby-guy than a C-guy.

How can I change this gem so that I can continue using the latest and greatest Nokogiri releases that you all keep producing? ❤️

@flavorjones
Copy link
Member

Whoa, sorry you're having problems, that's unexpected.

I will add the saml2 and/or xmlsec-instructure projects to the set of downstream projects we run CI against so that I have good signal on this going forward.

Let me take a look -- it may take a few hours though, today's a bit busy for me.

@flavorjones
Copy link
Member

#2595 is going through CI now which adds xmlsec to the suite

@flavorjones
Copy link
Member

I submitted PR instructure/nokogiri-xmlsec-instructure#14 upstream

@flavorjones
Copy link
Member

successful failure on the downstream suite: https://github.com/sparklemotion/nokogiri/runs/7323657032?check_suite_focus=true

@flavorjones
Copy link
Member

I'm not sure what else I can do at this point, how can I help?

@radar
Copy link
Contributor Author

radar commented Jul 14, 2022

Wow that's more than I expected. Thank you for helping out here :) We will use a fork with your commit in it -- that'll suit for our purposes.

@radar radar closed this as completed Jul 14, 2022
@flavorjones
Copy link
Member

Wow that's more than I expected

Well, I feel bad that we broke something, we try pretty hard not to.

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

No branches or pull requests

2 participants