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

629 no support for the mysql connector python library in version 900 #688

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* ensure `logprep.abc.Component.Config` is immutable and can be applied multiple times
* remove lost callback reassign behavior from `kafka_input` connector
* remove manual commit option from `kafka_input` connector
* pin `mysql-connector-python` to >=9.1.0 to accommodate for CVE-2024-21272 and update `MySQLConnector` to work with the new version

## 13.1.2
### Bugfix
Expand Down
2 changes: 1 addition & 1 deletion logprep/processor/generic_adder/mysql_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MySQLConnector:
_last_table_checksum: Optional[int]
"""Checksum of the database table that was obtained on the last update check"""

_cursor: mysql.connector.connection.CursorBase
_cursor: mysql.connector.connection.MySQLCursor

def __init__(self, sql_config: dict):
"""Initialize the MySQLConnector.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dependencies = [
"jsonref",
"luqum",
"more-itertools==8.10.0",
"mysql-connector-python<9",
"mysql-connector-python>=9.1.0", # CVE-2024-21272
"numpy>=1.26.0",
"opensearch-py",
"prometheus_client",
Expand Down
Loading