[Bug]: Backup charts fails to upload backups where database name includes "backup" #356
Open
1 task done
Labels
bug
Something isn't working
Contact Details
No response
What happened?
I was testing a backup pipeline with said Helm chart and a dummy database called "backup_test" failed to upload to an Azure storage account. I am unable to reproduce the output for security reasons but the console output reported it could not find a file, but the file it was looking for was not the file it had written.
I am fairly certain the error originates here where the files names are derived from regex on console output, subsequently pulling the wrong sub string and interpreting it as the file name. Assuming there is good reason to use regex instead of listing directory contents (although this is unclear to me) I think the error could be fixed by altering this line to
re := regexp.MustCompile(`Finished artifact creation (.*)\.backup`)
so it explicitly looks for the full stop that would not be in any database name.Chart Name
Neo4j Admin
Chart Version
5.12.0
Environment
Microsoft Azure
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: