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

[bug] Regression in 1.13.0 in XSLT.quote_params #2418

Closed
jcoyne opened this issue Jan 10, 2022 · 7 comments · Fixed by #2420
Closed

[bug] Regression in 1.13.0 in XSLT.quote_params #2418

jcoyne opened this issue Jan 10, 2022 · 7 comments · Fixed by #2420

Comments

@jcoyne
Copy link

@jcoyne jcoyne commented Jan 10, 2022

In nokogiri 1.12 and before I was able to send integers to XSLT.quote_params:

Nokogiri::XSLT.quote_params(['foo', 123])

After upgrading to 1.13.0 this results in a TypeError:

*** TypeError Exception: no implicit conversion of Integer into String
@jcoyne jcoyne added the state/needs-triage label Jan 10, 2022
jcoyne added a commit to sul-dlss/gis-robot-suite that referenced this issue Jan 10, 2022
@flavorjones
Copy link
Member

@flavorjones flavorjones commented Jan 10, 2022

@jcoyne Thanks for opening this! I'll take a look.

@flavorjones
Copy link
Member

@flavorjones flavorjones commented Jan 10, 2022

git bisect isolated this regression to 3099528 which is ... 🤔

Should be an easy fix, though.

@flavorjones
Copy link
Member

@flavorjones flavorjones commented Jan 10, 2022

Basically:

1234 =~ /'/ # this is OK
/'/.match?(1234) # this is not OK

@flavorjones flavorjones removed the state/needs-triage label Jan 10, 2022
@flavorjones flavorjones added this to the v1.13.x patch releases milestone Jan 10, 2022
flavorjones added a commit that referenced this issue Jan 11, 2022
Along the way, rewrite this method, refactor the tests, and improve
the documentation.

Closes #2418
@flavorjones
Copy link
Member

@flavorjones flavorjones commented Jan 11, 2022

PR at #2420

flavorjones added a commit that referenced this issue Jan 11, 2022
Along the way, rewrite this method, refactor the tests, and improve
the documentation.

Closes #2418
flavorjones added a commit that referenced this issue Jan 11, 2022
Along the way, rewrite this method, refactor the tests, and improve
the documentation.

Closes #2418
@jcoyne
Copy link
Author

@jcoyne jcoyne commented Jan 11, 2022

Thank you @flavorjones !

@flavorjones
Copy link
Member

@flavorjones flavorjones commented Jan 11, 2022

I'm hoping to ship v1.13.1 today or tomorrow. Working on one other regression.

@flavorjones
Copy link
Member

@flavorjones flavorjones commented Jan 13, 2022

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 a pull request may close this issue.

2 participants