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.pull/8624/head
parent
cfca6f6218
commit
af6c1a24cf
|
@ -208,7 +208,7 @@ RUN apk add --no-cache \
|
||||||
libedit \
|
libedit \
|
||||||
libldap \
|
libldap \
|
||||||
libcap && \
|
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 {} + && \
|
find / -type d -name '__pycache__' -exec rm -rf {} + && \
|
||||||
useradd -r -u 5050 -g root -s /sbin/nologin pgadmin && \
|
useradd -r -u 5050 -g root -s /sbin/nologin pgadmin && \
|
||||||
mkdir -p /run/pgadmin /var/lib/pgadmin && \
|
mkdir -p /run/pgadmin /var/lib/pgadmin && \
|
||||||
|
|
|
@ -271,7 +271,7 @@ def non_windows_platform(parent, p, fd, data, max_read_bytes, sid):
|
||||||
timeout)
|
timeout)
|
||||||
|
|
||||||
read_terminal_data(parent, data_ready, max_read_bytes, sid)
|
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
|
# If the process is killed, bad file descriptor exception may
|
||||||
# occur. Handle it gracefully
|
# occur. Handle it gracefully
|
||||||
pass
|
pass
|
||||||
|
@ -311,14 +311,15 @@ def start_process(data):
|
||||||
|
|
||||||
_, manager = _get_connection(int(data['sid']), data)
|
_, manager = _get_connection(int(data['sid']), data)
|
||||||
psql_utility = manager.utility('sql')
|
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',
|
sio.emit('pty-output',
|
||||||
{
|
{
|
||||||
'result': gettext(
|
'result': gettext(
|
||||||
'PSQL utility not found. Specify the binary '
|
'PSQL utility not found. Specify the valid '
|
||||||
'path in the preferences for the appropriate '
|
'binary path in the preferences for the '
|
||||||
'server version, or select "Set as default" '
|
'appropriate server version, or select '
|
||||||
'to use an existing binary path.'),
|
'"Set as default" to use an existing binary '
|
||||||
|
'path.'),
|
||||||
'error': True},
|
'error': True},
|
||||||
namespace='/pty', room=request.sid)
|
namespace='/pty', room=request.sid)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue