pgadmin4/web/pgadmin/utils
Jørgen H. Fjeld 402ddafa2a
Fix sslsni boolean to integer conversion for libpq compatibility
The sslsni connection parameter was being stored as a boolean (true/false)
in the database, but libpq expects integer values (1/0) for this parameter.
When a boolean value was passed to libpq, it resulted in SSL connection
failures with 'unexpected eof while reading' errors.

This fix converts boolean connection parameters (sslcompression, sslsni) to
integers when creating the connection string in server_manager.py, ensuring
libpq receives the expected integer format.

Fixes connection issues when using PGSSLSNI=1 with PostgreSQL 14+ servers.
2026-01-14 12:31:36 +05:30
..
driver Fix sslsni boolean to integer conversion for libpq compatibility 2026-01-14 12:31:36 +05:30
dynamic_registry Copyright updated for 2026 2026-01-05 13:33:45 +05:30
javascript Copyright updated for 2026 2026-01-05 13:33:45 +05:30
sqlautocomplete Copyright updated for 2026 2026-01-05 13:33:45 +05:30
tests Copyright updated for 2026 2026-01-05 13:33:45 +05:30
__init__.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
ajax.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
check_external_config_db.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
compile_template_name.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
constants.py Mask the secret key for restrict option in the process watcher when restoring plain SQL file. #9518 2026-01-08 11:39:01 +05:30
crypto.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
csrf.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
csv_lib.py Updated entrypoint.sh to utilize the email-validator package for email validation. #7297 2024-07-18 11:05:37 +05:30
enhanced_log_rotation.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
exception.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
heartbeat.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
html.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
locker.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
master_password.py Ensure the saved passwords are decrypted with the correct encryption key for external authentication in server mode. #8435 2025-02-18 11:54:57 +05:30
menu.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
passexec.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
paths.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
preferences.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
route.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
security_headers.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
server_utils.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
session.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
validation_utils.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30
versioned_template_loader.py Copyright updated for 2026 2026-01-05 13:33:45 +05:30