DOMjudge / domjudge

DOMjudge programming contest jury system
https://www.domjudge.org
GNU General Public License v2.0
701 stars 249 forks source link

Problem when the password of the database ends with '.' #2502

Open ljarevalo opened 2 months ago

ljarevalo commented 2 months ago

Description of the problem

I want to inform you that there is a bug, I think, with the domserver installation. I have been searching for a week and I have not found any reference to it anywhere. In my case, I set the MySQL password that ends with the character '.' and the problem lies in the fact that when executing dj_setup_database, this character is treated as string concatenation, and consequently, the password doesn't work. I've solved the problem by changing the password.

Your environment

DOMjudge version (e.g. 8.3.2) Operating system / Linux distribution and version (e.g. Ubuntu 22.04 and Debian 12) Webserver (e.g. Apache)

Steps to reproduce

When the database passworkd ends with '.' and the command dj_setupdatabase is run: sudo bin/dj_setup_database -u root -r install, it doesn´t work since it is concatenated with more informatiion

sudo bin/dj_setup_database -u root -r install

Doctrine\DBAL\DBALException: "Malformed parameter "url".