Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

bug: Normalize padding handling for restricted subscriptions #467

Merged
merged 1 commit into from
May 11, 2016

Conversation

jrconlin
Copy link
Member

@jrconlin jrconlin commented May 9, 2016

Since fernet passes it's content through base64 handling, it's just as
picky about padding as other base64 instances. For now, strip padding
from outbound endpoints and reapply it (if needed) to inbound endpoints.

Closes #466

@bbangert r?

@codecov-io
Copy link

codecov-io commented May 9, 2016

Current coverage is 100%

Merging #467 into master will not change coverage

@@           master   #467   diff @@
====================================
  Files          31     31          
  Lines        7498   7501     +3   
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
+ Hits         7498   7501     +3   
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last updated by e0da439...50b6082

@bbangert
Copy link
Member

This changes generation of new endpoints, is there a test already that has old endpoints with the padding so we can be 100% sure existing endpoints work?

@ghost
Copy link

ghost commented May 10, 2016

We should use BaseEmoji instead of Base64. @jrconlin suggests using 😭 for padding.

dummy_uaid,
dummy_chid,
dummy_key)
(_, token) = ep.split("/")[-2:]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parens on left side not needed.

@bbangert
Copy link
Member

r+, minor python nits

Since fernet passes it's content through base64 handling, it's just as
picky about padding as other base64 instances. For now, strip padding
from outbound endpoints and reapply it (if needed) to inbound endpoints.

Closes #466
@jrconlin jrconlin merged commit 3970903 into master May 11, 2016
@bbangert bbangert deleted the bug/466 branch May 11, 2016 16:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants