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

Fix NaClCookieStorage for corrupt cookie generating error 500 #317

Merged
merged 2 commits into from
Sep 12, 2018

Conversation

tardyp
Copy link
Contributor

@tardyp tardyp commented Sep 10, 2018

Fix #316

encoder=Base64Encoder).decode('utf-8')
)
return Session(None, data=data, new=False, max_age=self.max_age)
except (binascii.Error, nacl.exceptions.CryptoError):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if we shouldn't just catch all exceptions

@tardyp tardyp changed the title Na cl cookie storage Fix NaClCookieStorage for corrupt cookie generating error 500 Sep 11, 2018
@codecov
Copy link

codecov bot commented Sep 11, 2018

Codecov Report

Merging #317 into master will increase coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #317      +/-   ##
=========================================
+ Coverage   97.08%   97.2%   +0.12%     
=========================================
  Files           4       4              
  Lines         206     215       +9     
  Branches       25      25              
=========================================
+ Hits          200     209       +9     
  Misses          4       4              
  Partials        2       2
Impacted Files Coverage Δ
aiohttp_session/nacl_storage.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cecdc72...7240128. Read the comment docs.

@asvetlov asvetlov merged commit 9016e7d into aio-libs:master Sep 12, 2018
@asvetlov
Copy link
Member

thanks!

@tardyp tardyp deleted the NaClCookieStorage branch September 12, 2018 15:24
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.

2 participants