diff --git a/docs/en_US/release_notes_7_5.rst b/docs/en_US/release_notes_7_5.rst index 5fc70e4ab..e4e4c018b 100644 --- a/docs/en_US/release_notes_7_5.rst +++ b/docs/en_US/release_notes_7_5.rst @@ -28,9 +28,9 @@ Housekeeping ************ | `Issue #6295 `_ - Remove Bootstrap and jQuery from authentication pages and rewrite them in ReactJS. + | `Issue #6323 `_ - Enable cluster deployment with gp3 volume for AWS & BigAnimal cloud providers. | `Issue #6423 `_ - Clarify the LICENSE file to indicate that it is the PostgreSQL Licence. | `Issue #6532 `_ - Remove unsupported PostgreSQL versions from the container. - | `Issue #6323 `_ - Enable cluster deployment with gp3 volume for AWS & BigAnimal cloud providers. Bug fixes ********* diff --git a/web/pgadmin/utils/driver/psycopg3/connection.py b/web/pgadmin/utils/driver/psycopg3/connection.py index 4f328b353..697379f9f 100644 --- a/web/pgadmin/utils/driver/psycopg3/connection.py +++ b/web/pgadmin/utils/driver/psycopg3/connection.py @@ -14,7 +14,7 @@ object. """ import os -import random +import secrets import datetime import asyncio from collections import deque @@ -961,7 +961,7 @@ WHERE db.datname = current_database()""") if not status: return False, str(cur) - query_id = random.randint(1, 9999999) + query_id = str(secrets.choice(range(1, 9999999))) current_app.logger.log( 25, @@ -1039,7 +1039,7 @@ WHERE db.datname = current_database()""") if not status: return False, str(cur) - query_id = random.randint(1, 9999999) + query_id = str(secrets.choice(range(1, 9999999))) encoding = self.python_encoding @@ -1107,7 +1107,7 @@ WHERE db.datname = current_database()""") if not status: return False, str(cur) - query_id = random.randint(1, 9999999) + query_id = str(secrets.choice(range(1, 9999999))) current_app.logger.log( 25, @@ -1194,7 +1194,7 @@ WHERE db.datname = current_database()""") if not status: return False, str(cur) - query_id = random.randint(1, 9999999) + query_id = str(secrets.choice(range(1, 9999999))) current_app.logger.log( 25, "Execute (2darray) by {pga_user} on " @@ -1251,7 +1251,7 @@ WHERE db.datname = current_database()""") if not status: return False, str(cur) - query_id = random.randint(1, 9999999) + query_id = str(secrets.choice(range(1, 9999999))) current_app.logger.log( 25, "Execute (dict) by {pga_user} on "