-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Fix issues with PR #5631 causing base64 errors #5492
Fix issues with PR #5631 causing base64 errors #5492
Conversation
- Some of values were not converted back from base64, which resulted in spurious errors with base64 strings. (This was caused by nested arrays, like commands, not being converted back, combined with the wrong assumption that commands always occur before options. It is not always true, as the added test case demonstrates.) - Some other values were converted *from* base64, but they weren't base64 in the first place, which resulted in junk binary data. (This was due to the invalid assumption that only odd-numbered values need to be converted.)
815890b
to
efa6963
Compare
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.
Huge thanks for the quick fix @jkozera!!!
thanks +1 |
When it is expected to be published? Technically SLS v1.33 is quite broken now (unusable for my projects), if that's not meant to be patched quickly, then at least it'd be good to mark v1.33 as deprecated |
FWIW , it can be worked around by always passing arguments like:
Basically, never placing commands after other options, and never using booleans without arguments. For the booleans, you can pass
But yeah, it's a pain, and probably a worse workaround than just downgrading to v1.32. :) UPDATE: Errm, nevermind, even this doesn't always work:
|
For me following commands as simple as below crash
Even if there's a workaround, I wouldn't expect anyone to take effort and learn about it. It'll be best if v1.33 is just deprecated, as current behavior is pretty nasty. |
i'm releasing 1.33.1 asap |
and it's released. |
@dschep Thank you! |
What did you implement:
Closes #5491
How did you implement it:
Details, why the changes were required:
How can we verify it:
Try running for instance
serverless --no-color --verbose info
in any project.Todos:
Is this ready for review?: YES
Is it a breaking change?: NO