| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-05-12 | [3.2.x] Fixed #32732 -- Removed usage of deprecated 'db' and 'passwd' ↵ | Nick Pope | |
| connection options in MySQL backend. The 'db' and 'passwd' connection options have been deprecated, use 'database' and 'password' instead (available since mysqlclient >= 1.3.8). This also allows the 'database' option in DATABASES['OPTIONS'] on MySQL. Backport of 1061f5243646b4c9b8a758f8a36c9e2ccdded1cf from main | |||
| 2021-04-27 | [3.2.x] Fixed #32687 -- Restored passing process’ environment to ↵ | Konstantin Alekseev | |
| underlying tool in dbshell on PostgreSQL. Regression in bbe6fbb8768e8fb1aecb96d51c049d7ceaf802d3. Backport of 6e742dabc95b00ba896434293556adeb4dbaee8a from main. | |||
| 2020-11-03 | Refs #32061 -- Fixed test_crash_password_does_not_leak() crash on Windows. | Mariusz Felisiak | |
| When env is passed to subprocess.run() we should pass all existing environment variables. This fixes crash on Windows: Fatal Python error: failed to get random numbers to initialize Python Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python Python runtime state: preinitialized | |||
| 2020-10-30 | Refs #32061 -- Prevented password leak on MySQL dbshell crash. | Simon Charette | |
| The usage of the --password flag when invoking the mysql CLI has the potential of exposing the password in plain text if the command happens to crash due to the inclusion of args provided to subprocess.run(check=True) in the string representation of the subprocess.CalledProcessError exception raised on non-zero return code. Since this has the potential of leaking the password to logging facilities configured to capture crashes (e.g. sys.excepthook, Sentry) it's safer to rely on the MYSQL_PWD environment variable instead even if its usage is discouraged due to potential leak through the ps command on old flavors of Unix. Thanks Charlie Denton for reporting the issue to the security team. Refs #24999. | |||
| 2020-10-30 | Refs #32061 -- Added test for dbshell password leak on PostgreSQL. | Simon Charette | |
| 2020-10-29 | Refs #32061 -- Unified DatabaseClient.runshell() in db backends. | Simon Charette | |
| 2020-10-17 | Fixed #6517 -- Made dbshell use charset option on MySQL. | manav014 | |
| Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-06-12 | Fixed #31491 -- Allowed 'password' option in DATABASES['OPTIONS'] on MySQL. | Hasan Ramezani | |
| 2020-04-14 | Fixed #29501 -- Allowed dbshell to pass options to underlying tool. | Adam Johnson | |
| 2020-04-14 | Refs #29501 -- Added test for missing dbshell executable. | Mariusz Felisiak | |
| 2019-12-16 | Fixed #31076 -- Fixed dbshell crash on Windows with Python < 3.8. | Zeynel Özdemir | |
| subprocess.run()'s args parameter accepts path-like objects on Windows since Python 3.8. | |||
| 2019-08-23 | Fixed broken OracleDbshellTests tests after ↵ | Mariusz Felisiak | |
| 9386586f31b8a0bccf59a1bff647cd829d4e79aa. | |||
| 2019-08-23 | Replaced subprocess commands by run() wherever possible. | Claude Paroz | |
| 2019-07-19 | Fixed typos in comments and a test name. | Min ho Kim | |
| 2019-04-18 | Fixed #30370 -- Added dbshell support for client TLS certificates on PostgreSQL. | Oleh Mykytiuk | |
| 2019-02-13 | Fixed #30173 -- Simplified db.backends.postgresql.client. | Daniel Bowring | |
| 2019-02-13 | Refs #25175 -- Renamed test file referencing the old postgresql_psycopg2 engine. | Tim Graham | |
| 2019-01-27 | Removed default mode='r' argument from calls to open(). | Jon Dufresne | |
| 2018-10-25 | Fixed #29534 -- Made dbshell use rlwrap on Oracle if available. | Mariusz Felisiak | |
| 2018-08-01 | Fixed typos in comments and docs. | luz.paz | |
| 2017-06-19 | Fixed #28322 -- Added dbshell support for MySQL client TLS certs. | Paul Tiplady | |
| 2017-04-01 | Fixed #27954 -- Allowed keyboard interrupt to abort queries in PostgreSQL ↵ | Chris Sinchok | |
| dbshell. Thanks Tim Martin for review. | |||
| 2017-01-20 | Refs #23919 -- Removed django.test.mock Python 2 compatibility shim. | Tim Graham | |
| 2017-01-20 | Refs #23919 -- Removed unneeded force_str calls | Claude Paroz | |
| 2017-01-18 | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-06-03 | Fixed #26698 -- Fixed PostgreSQL dbshell crash on an empty database name. | mieciu | |
| 2015-08-07 | Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql. | Caio Ariede | |
| 2015-07-06 | Refs #23658 -- Fixed dbshell tests on Windows. | Tim Graham | |
| 2015-07-01 | Refs #23658 -- Fixed unclosed file in dbshell tests. | Tim Graham | |
| 2015-06-30 | Fixed #23658 -- Provided the password to PostgreSQL dbshell command | Jean-Michel Vourgère | |
| The password from settings.py is written in a temporary .pgpass file file whose name is given to psql using the PGPASSFILE environment variable. | |||
| 2015-06-27 | Renamed MySQL-specific dbshell test file. | Tim Graham | |
| 2014-08-13 | Fixed #22646: Added support for the MySQL ssl-ca option to dbshell. | zsoldosp | |
