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 SSL connection handshake charset not respecting client configuration #776

Merged
merged 2 commits into from Apr 20, 2022

Conversation

alviezhang
Copy link
Contributor

@alviezhang alviezhang commented Apr 19, 2022

What do these changes do?

The SSL connection handshake character set is fixed to utf8, this PR is to fix that issue #775

Are there changes in behavior for the user?

Users should be able to establish SSL connections with the client charset parameter

Related issue number

#775

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment into CHANGES.txt

@Nothing4You
Copy link
Collaborator

thanks, see also #648

I'll review this later

@codecov
Copy link

codecov bot commented Apr 19, 2022

Codecov Report

Merging #776 (59183bd) into master (fe0120b) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #776      +/-   ##
==========================================
+ Coverage   92.74%   92.75%   +0.01%     
==========================================
  Files          38       38              
  Lines        5558     5566       +8     
  Branches      942      943       +1     
==========================================
+ Hits         5155     5163       +8     
  Misses        315      315              
  Partials       88       88              
Flag Coverage Δ
ubuntu-latest_3.10_mariadb-10.2 89.31% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.10_mariadb-10.3 89.31% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.10_mariadb-10.4 89.31% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.10_mariadb-10.5 89.29% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.10_mariadb-10.6 89.29% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.10_mariadb-10.7 89.29% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.10_mysql-5.7 89.99% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.10_mysql-8.0 91.37% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.11-dev_mariadb-10.2 89.27% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.11-dev_mariadb-10.3 89.27% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.11-dev_mariadb-10.4 89.27% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.11-dev_mariadb-10.5 89.25% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.11-dev_mariadb-10.6 89.25% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.11-dev_mariadb-10.7 89.25% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.11-dev_mysql-5.7 89.95% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.11-dev_mysql-8.0 91.34% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.7_mariadb-10.2 88.71% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.7_mariadb-10.3 88.71% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.7_mariadb-10.4 88.71% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.7_mariadb-10.5 88.69% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.7_mariadb-10.6 88.69% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.7_mariadb-10.7 88.69% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.7_mysql-5.7 89.43% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.7_mysql-8.0 90.90% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.8_mariadb-10.2 89.35% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.8_mariadb-10.3 89.35% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.8_mariadb-10.4 89.35% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.8_mariadb-10.5 89.33% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.8_mariadb-10.6 89.33% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.8_mariadb-10.7 89.33% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.8_mysql-5.7 90.03% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.8_mysql-8.0 91.40% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.9_mariadb-10.2 89.20% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.9_mariadb-10.3 89.20% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.9_mariadb-10.4 89.20% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.9_mariadb-10.5 89.18% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.9_mariadb-10.6 89.18% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.9_mariadb-10.7 89.18% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.9_mysql-5.7 89.89% <100.00%> (+0.01%) ⬆️
ubuntu-latest_3.9_mysql-8.0 91.25% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiomysql/connection.py 83.98% <100.00%> (-0.04%) ⬇️
tests/test_basic.py 98.11% <100.00%> (+0.12%) ⬆️

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 fe0120b...59183bd. Read the comment docs.

@Nothing4You Nothing4You added this to the 0.2 milestone Apr 19, 2022
@Nothing4You
Copy link
Collaborator

Thanks, looks good.

Could you please fix the flake failure and add a note into CHANGES.txt?
CHANGES folder for changelogs does not yet exist, as I haven't gotten around to implementing that yet.

@alviezhang
Copy link
Contributor Author

@Nothing4You How do I add the changes to CHANGES.txt? In version 0.1.0 or create a new version?

@alviezhang alviezhang changed the title Fix SSL connection handshake charset not respecting connection configuration Fix SSL connection handshake charset not respecting client configuration Apr 20, 2022
@Nothing4You
Copy link
Collaborator

add a new section like this please:

aiomysql/CHANGES.txt

Lines 4 to 5 in 2239d89

next (unreleased)
^^^^^^^^^^^^^^^^^

@alviezhang
Copy link
Contributor Author

@Nothing4You Thanks for answering. I've already added a changelog to CHANGES.txt

@Nothing4You Nothing4You merged commit 23b0fea into aio-libs:master Apr 20, 2022
@Nothing4You
Copy link
Collaborator

thanks

@Nothing4You Nothing4You modified the milestones: 0.2, 0.1 May 8, 2022
andr-04 added a commit to andr-04/aiomysql that referenced this pull request May 13, 2022
* commit '8a32f052a16dc3886af54b98f4d91d95862bfb8e': (92 commits)
  Update changelog for 0.1.1 release (aio-libs#784)
  Bump pytest from 7.1.1 to 7.1.2 (aio-libs#781)
  XFail test_issue_36 for now to avoid failing for unrelated changes (aio-libs#779)
  Skip codecov uploads in scheduled daily tests (aio-libs#778)
  Bump codecov/codecov-action from 3.0.0 to 3.1.0 (aio-libs#777)
  Fix SSL connection handshake charset not respecting client configuration (aio-libs#776)
  Bump ncipollo/release-action from 1.9.0 to 1.10.0 (aio-libs#766)
  Bump actions/cache from 3.0.1 to 3.0.2 (aio-libs#771)
  Bump actions/download-artifact from 2 to 3 (aio-libs#765)
  Bump actions/upload-artifact from 2 to 3 (aio-libs#767)
  Update changelog for release (aio-libs#769)
  Checkout git source to access changelog for GitHub release creation
  Change next version to 0.1.0 in changelog
  Fix GHA badge in readme after aio-libs#734 (aio-libs#762)
  Fix SSCursor raising query timeout error on wrong query on MySQL DB (aio-libs#761)
  Specify explicit language for literal blocks in CONTRIBUTING.rst to reduce warnings in doc builds (aio-libs#760)
  fix `make checkrst` (aio-libs#759)
  Update sphinx requirement from <4.4.1,>=1.8.1 to 4.5.0 (aio-libs#751)
  Bump codecov/codecov-action from 2.1.0 to 3.0.0 (aio-libs#758)
  Bump actions/cache from 2.1.7 to 3.0.1 (aio-libs#752)
  ...
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.

SSL connection handshake charset is always set to utf-8
2 participants