-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unexpected behavior of CGI#unescape when required via aws-sdk #1493
Comments
This definitely looks like a side effect of #1487 - and the best possible workaround seems to be what you've already discovered, to require the rest of the However the exception is very unhelpful...considering if we should return the old require pattern. |
Yep, I agree on the usefulness of the exception 😄 |
Adding info. Looks like this is another problem with Ruby 2.4, I can reproduce the same error there. For Ruby 2.3, it works fine though. Definitely an issue that we will follow up with. |
Okay, given that this seems to be a Ruby 2.4 change in |
On second thought, the bug label is inappropriate given that the weirdness seems to center on Ruby proper (consider opening an issue with them), but I'll change the import strategy regardless. |
I've pushed a fix to this that will go out with the next release. |
Hi Folks,
I'm currently using aws-sdk 2.9.11, and it seems to have a bad side effect on the behavior of CGI#unescape.
Ruby version: mri 2.4.1
Gemfile:
Test file:
What I expected: an output line showing 'foo bar'.
What I got:
the following exception:
An easy workaround is adding an explicit
require "CGI"
before (or after) the aws sdk require:The text was updated successfully, but these errors were encountered: