notify_push icon indicating copy to clipboard operation
notify_push copied to clipboard

PostgreSQL auth fails when the password contains `\`

Open fernandocollova opened this issue 3 years ago • 0 comments

Steps to reproduce:

  • Change your Nextcloud user password to one that includes the backwards slash (\)
  • Change the config.php file to use the password, properly escaping the backwards slash with another backwards slash
  • Start notify_push daemon

What happens:

I get this message:

Error: 
   0: Failed to connect to Nextcloud database
   1: error returned from database: password authentication failed for user "nextcloud"
   2: password authentication failed for user "nextcloud"
Location:
   /tmp/krankerl.UyibIgt7EFoA/notify_push/src/storage_mapping.rs:58
Backtrace omitted.
Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

What should happen:

notify_push should have started without errors


First of all, thanks for this great piece of software! I've been using Nextcloud for many years now, and is the most reliable part of my home server setup

And, although this was a no issue for me, as simply changing the password to one that doesn't use \ solved the issue, if this is just a case of interpreting character escape sequences, I think its worth at least noticing in the docs that this can happen, so I'm reporting this bug.

fernandocollova avatar Nov 23 '21 02:11 fernandocollova