During the installation of MediaWiki, when a password containing \% (backslash percent) is used for PostgreSQL, the installer fails to connect to the database. The error shown is not very helpful:
Description
Details
Event Timeline
From a quick look at the installer code, it seems it does not do any escaping on its end, which means per @Reedy this is likely an issue in the rdmbs layer indeed. The password is passed from PostgressInstaller::openConnectionToAnyDB to the DatabasePostgress class where makeConnectionString() does some basic quote escaping and then call pg_connect().
Change 808549 had a related patch set uploaded (by Thomas Daniels; author: Thomas Daniels):
[mediawiki/core@master] rdbms: escape backslashes in makeConnectionString for PostgreSQL
Change 808549 merged by jenkins-bot:
[mediawiki/core@master] rdbms: escape backslashes in makeConnectionString for PostgreSQL
Change 894083 had a related patch set uploaded (by Krinkle; author: Thomas Daniels):
[mediawiki/core@REL1_39] rdbms: escape backslashes in makeConnectionString for PostgreSQL
Change 894083 merged by jenkins-bot:
[mediawiki/core@REL1_39] rdbms: escape backslashes in makeConnectionString for PostgreSQL