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

Prevent double encoding of binary #129

Closed
wants to merge 4 commits into from

Conversation

danielhochman
Copy link
Contributor

@danielhochman danielhochman commented May 13, 2016

Fixes #127

Unfortunately, all Binary data is double-encoded that has been written by Pynamo. This PR prevents that from happening going forward, but we need to have a way to deserialize the double-encoded data so that we don't break everyone going forward.

TODO:

  • figure out how to support legacy double-encoded data

@coveralls
Copy link

coveralls commented May 13, 2016

Coverage Status

Coverage increased (+0.3%) to 97.754% when pulling 3d566a6 on prevent-double-encoding-of-binary into 46a5d7c on devel.

@ewalker11
Copy link

Looks good to me so far. Regarding the backwards-compatibility question, how about we roll the double base64 encoding/decoding into the existing Binary attributes, deprecate them, and create a new set of binary attributes (e.g. attributesv2.BinaryAttribute) that do the right thing. Then we can eventually remove the legacy binary attributes.

@jmphilli
Copy link
Contributor

can we update this and merge?

@jmphilli
Copy link
Contributor

also add a test? 😸

@danielhochman danielhochman changed the base branch from devel to master April 28, 2017 17:38
@ikonst
Copy link
Contributor

ikonst commented Nov 18, 2022

Superseded by #1112 (oh wow, a lot of numbers gone by...).

@ikonst ikonst closed this Nov 18, 2022
@ikonst ikonst deleted the prevent-double-encoding-of-binary branch November 18, 2022 17:08
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 this pull request may close these issues.

Binary Attributes Double-base64 Encoded
5 participants