[4.x]: Backup failed because primary site name contained the ® (Registered trademark symbol)
Open
Nobody has claimed this yet.
bug
craft4
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
Backup failed because site name contained the ® (Registered trademark symbol)
Steps to reproduce
- Have a sitename that contain a symbol that when parsed puts brackets around that symbol ® -> (r) when the filename of the database backup is created
Expected behavior
- Backup is created without issue
Actual behavior
- Doesn't work and get a log "Could not create backup: The shell command "..." failed with exit code 1: sh: -c: line 0: syntax error near unexpected token `('
Was able to fix by simply changing site name but it only appears to break with latest version of craft 4 or something
Craft CMS version
Craft Pro 4.9.1
PHP version
8.2.18
Operating system and version
Linux 3.10.0-962.3.2.lve1.5.81.el7.x86_64
Database type and version
MariaDB 10.6.17
Image driver and version
GD 8.2.18
Installed plugins and versions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is identified in the report. First reproduce a database backup with a site name containing ® on Craft Pro 4.9.1, then trace the backup command and filename handling; done means the backup completes without a shell syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mariadb, php, shell
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100