-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pg_dump fails when passwords are complex #30743
Labels
dotCMS : Admin Tools
dotCMS : Containerization
LTS : Next
Ticket that will be added to LTS
Next Release
QA : Approved
QA : Passed Internal
Team : Falcon
Type : Defect
Comments
wezell
added a commit
that referenced
this issue
Nov 21, 2024
…e contains special characters ref #30743
wezell
added a commit
that referenced
this issue
Nov 21, 2024
…e contains special characters ref #30743
INTERNAL QA: PASSED ✅
The generated dump file can be un-compressed without problem now, exposing the plain .SQL file. |
jcastro-dotcms
moved this from Internal QA
to QA - Backlog
in dotCMS - Product Planning
Nov 22, 2024
Approved: Tested on ** trunk_4f46e9e**, Docker, macOS 14.5, FF v126.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dotCMS : Admin Tools
dotCMS : Containerization
LTS : Next
Ticket that will be added to LTS
Next Release
QA : Approved
QA : Passed Internal
Team : Falcon
Type : Defect
Parent Issue
No response
Problem Statement
Support is asked once a week to create backups for customers. We have this functionality in the back end but it can fail in some cases.
This is because the
pg_dump
functionality under the covers creates a url connection to a postgres database and it fails when there are special characters that need to be encoded to be used in a url - for example when a password contains a special characters like these:/+%&
.You can see this breaking in the backend of the new headless site.
This is the same issue as we had with the old pubsub connection #21363
Steps to Reproduce
Create a database user with a password that contains characters like these
:/+%&
and then try to use the db dump function in the Maintenance > Tools screen in dotCMS. These characters need to be escaped.Acceptance Criteria
We should be able to dump databases with aplomb!
Steps to Reproduce
System > Maintenance > TOOLS
portlet, inside theExport dotCMS Content
section, and click the `Download DB Dump.default_db_2024-11-22_08-49-29.sql.gz
dotCMS Version
23.x+
The text was updated successfully, but these errors were encountered: