-
Notifications
You must be signed in to change notification settings - Fork 580
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
(MODULES-11126) Replacing URI.escape with URI::DEFAULT_PARSER #1195
Conversation
uriescape is a functionBreaking changes to this file MAY impact these 4 modules (near match):This module is declared in 319 of 577 indexed public
|
There is also an open issue for this https://tickets.puppetlabs.com/browse/MODULES-11126, so can also link that. |
@valleedelisle thanks for the PR, are you able to look at the failing spec tests, thanks |
URI.escape was deprecated in ruby-2.7 and removed in ruby-3.x. This change is breaking stdlib. Replacing URI.escape with URI::DEFAULT_PARSER is working properly.
I believe I've fixed it based on my local test, I apologize for the lost cycles. |
To me, the CI failure we see in the check is not related to this patch:
|
Any other feedback? Thanks, DVD |
@valleedelisle sorry been on vacation for the last three weeks, i agree i don't think this is related. i have kicked of the ci again hoping it was a transient issue will recheck this tomorrow |
@david22swan i think this is related to cento6 EOL i.e. unrelated to the PR. i can't override can you? or should we just drop cento6 and rebase |
uriescape is a functionthat may have no external impact to Forge modules. This module is declared in 318 of 578 indexed public
|
Hi @b4ldr @valleedelisle, closed and re-opened the PR to re-trigger the tests. The cla might need to be signed to be able to merge this, but overall it looks good. Thanks for the contribution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This reverts commit 799d608. While uriescape was deprecated for Puppet 8 in puppetlabs#1307 it was already fixed earlier for Puppet 8 and ruby 3 in puppetlabs#1195 It is unclear to me why this function was deprecated. * Fixes puppetlabs#1401
URI.escape was deprecated in ruby-2.7 and removed in ruby-3.x. This
change is breaking stdlib. This is described in detail here [1].
Replacing URI.escape with URI::DEFAULT_PARSER is working properly.
This is affecting openstack-tripleo [2]
[1] https://bugs.ruby-lang.org/issues/17309
[2] https://bugs.launchpad.net/tripleo/+bug/1937166