1
0
mirror of synced 2025-04-18 07:24:20 +03:00

1) Upgraded Gunicorn to version 23.0.0 to address a security vulnerability present in Gunicorn.

2) Resolved an issue where an empty PSQL panel would open if the psql utility was not found in the binary path.
This commit is contained in:
Akshay Joshi 2025-04-01 16:33:50 +05:30
parent cfca6f6218
commit af6c1a24cf
2 changed files with 8 additions and 7 deletions

View File

@ -208,7 +208,7 @@ RUN apk add --no-cache \
libedit \
libldap \
libcap && \
/venv/bin/python3 -m pip install --no-cache-dir gunicorn==22.0.0 && \
/venv/bin/python3 -m pip install --no-cache-dir gunicorn==23.0.0 && \
find / -type d -name '__pycache__' -exec rm -rf {} + && \
useradd -r -u 5050 -g root -s /sbin/nologin pgadmin && \
mkdir -p /run/pgadmin /var/lib/pgadmin && \

View File

@ -271,7 +271,7 @@ def non_windows_platform(parent, p, fd, data, max_read_bytes, sid):
timeout)
read_terminal_data(parent, data_ready, max_read_bytes, sid)
except OSError as e:
except OSError:
# If the process is killed, bad file descriptor exception may
# occur. Handle it gracefully
pass
@ -311,14 +311,15 @@ def start_process(data):
_, manager = _get_connection(int(data['sid']), data)
psql_utility = manager.utility('sql')
if psql_utility is None:
if psql_utility is None or not os.path.exists(psql_utility):
sio.emit('pty-output',
{
'result': gettext(
'PSQL utility not found. Specify the binary '
'path in the preferences for the appropriate '
'server version, or select "Set as default" '
'to use an existing binary path.'),
'PSQL utility not found. Specify the valid '
'binary path in the preferences for the '
'appropriate server version, or select '
'"Set as default" to use an existing binary '
'path.'),
'error': True},
namespace='/pty', room=request.sid)
return