[MDEV-24134] 10.4.16 update breaks python Created: 2020-11-05 Updated: 2020-12-16 Resolved: 2020-11-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Binary Protocol |
| Affects Version/s: | 10.4.16 |
| Fix Version/s: | 10.2.36, 10.3.27, 10.4.17, 10.5.8 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Frank | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS7 |
||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
With the update from 10.4.15 to 10.4.16, python apps can't access the database from localhost anymore. Downgrading to 10.4.15 will solve it. |
| Comments |
| Comment by Daniel Black [ 2020-11-05 ] | |||||
|
seems likely that its the same cause as | |||||
| Comment by Daniel Black [ 2020-11-05 ] | |||||
|
can you include which python interface you are using and its version? Sample code also welcome. | |||||
| Comment by Frank [ 2020-11-05 ] | |||||
|
I use python 3.6 and the mysql-connector 8.0.18 on CentOS7.8
| |||||
| Comment by Frank [ 2020-11-05 ] | |||||
|
Using the the maraidb python connector build with the mariadb C client lib will work, but needs some source modification, because "use_pure" for example is unknown to the mariadb implementation. So an simple replace of "import mysql.connector as db_connector" to "import mariadb as db_connector" does not work in all cases. | |||||
| Comment by Sergei Golubchik [ 2020-11-05 ] | |||||
|
This is a bug in mysql-connector-python. I've reported it as https://bugs.mysql.com/bug.php?id=101479 Latest MariaDB releases have stricter packet validation as a security measure and these broken packets are now rejected. | |||||
| Comment by RedVirus [ 2020-11-05 ] | |||||
|
After many workarounds i tried today this the solutions i got 1- upgrade to php 7.3 or 7.4 2- downgrade to minor version ( EX: mariadb 10.4.16 to 10.4.15)
|