We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We have some code that intends to return a friendly error if the first byte is base64 encoded:
aws-encryption-sdk-javascript/modules/serialize/src/deserialize_header_v1.ts
Lines 88 to 93 in 43813f4
aws-encryption-sdk-javascript/modules/serialize/src/deserialize_header_v2.ts
Lines 92 to 96 in 43813f4
However we can't ever get inside those statements because we first do a check at:
aws-encryption-sdk-javascript/modules/serialize/src/deserialize_factory.ts
Line 74 in 43813f4
Move the logic checking the expected first byte in Base64 before the branch that determines which version we're deserializing.
n/a
The text was updated successfully, but these errors were encountered:
Could you please share the updated logic
Sorry, something went wrong.
No branches or pull requests
Problem:
We have some code that intends to return a friendly error if the first byte is base64 encoded:
aws-encryption-sdk-javascript/modules/serialize/src/deserialize_header_v1.ts
Lines 88 to 93 in 43813f4
aws-encryption-sdk-javascript/modules/serialize/src/deserialize_header_v2.ts
Lines 92 to 96 in 43813f4
However we can't ever get inside those statements because we first do a check at:
aws-encryption-sdk-javascript/modules/serialize/src/deserialize_factory.ts
Line 74 in 43813f4
Solution:
Move the logic checking the expected first byte in Base64 before the branch that determines which version we're deserializing.
Out of scope:
n/a
The text was updated successfully, but these errors were encountered: