restic 0.16.4 compiled with go1.21.6 on windows/amd64
restic-browser 0.3
I was unable to access my repositories via restic-browser until I discovered that pesky newline at the end of my password file.
I have tested that restic trims both newlines and spaces before and after password, so I assume restic runs a trim command. I tested this by adding spaces and newlines befoer and after in my password file, and check that .\restic.exe snapshots -p pwfile.txt still works (and that $env:RESTIC_PASSWORD is undefined in the env.
restic certainly doesn't remove all spaces, as I have another password with spaces. I didn't check the restic source-code though.
When I copied my password manually into the filed in restic-browser it also didn't work, because I copied entire file content including last newline. When I delete the last visible char in restic-browser and enters it again it gets the newline deleted and the password works.
I havn't been using restic-browser for a long time because it just didn't work, so I suspect others might also just conclude wrongly that restic-browser is broken if they run into this.
env
I was unable to access my repositories via restic-browser until I discovered that pesky newline at the end of my password file.
I have tested that restic trims both newlines and spaces before and after password, so I assume restic runs a trim command. I tested this by adding spaces and newlines befoer and after in my password file, and check that
.\restic.exe snapshots -p pwfile.txt
still works (and that$env:RESTIC_PASSWORD
is undefined in the env.restic certainly doesn't remove all spaces, as I have another password with spaces. I didn't check the restic source-code though.
When I copied my password manually into the filed in restic-browser it also didn't work, because I copied entire file content including last newline. When I delete the last visible char in restic-browser and enters it again it gets the newline deleted and the password works.
I havn't been using restic-browser for a long time because it just didn't work, so I suspect others might also just conclude wrongly that restic-browser is broken if they run into this.