Skip to content

Conversation

meisterT
Copy link
Member

No description provided.

This was removed in version 3.3.0RC1 in 2012 so should
not be relevant anymore by now.
They were actually leading to double password reading
in the `load` command.
There was no easy way to do this, besides also completely
dropping and recreating an empty database.
This makes it easily available to admins.
This was used for only setting default configuration on
first installation, but irrelevant since 77932de.
See for reference:
- https://dev.mysql.com/doc/refman/8.0/en/connecting-using-uri-or-key-value-pairs.html#connecting-using-uri
- https://symfony.com/doc/current/doctrine.html
but note that we must use `rawurlencode` instead of `urlencode` which
differ in how they encode a space (as tested).

Fixes: DOMjudge#2651
Closes: DOMjudge#2502 as this is likely fixed but I couldn't reproduce it
(cherry picked from commit abeefb3)
eldering and others added 2 commits November 25, 2024 09:41
Use URL encoding in DATABASE_URL and return mysql_options
as an array (via ugly global variable), so each element
in it can be separately added to the command line using
`@` for expansion.

Because of changing the script to bash, also reverts some
of the changes in 483200a.

(cherry picked from commit ded9ef3)
@vmcj vmcj closed this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants