I’m trying to use new dynamic backend feature.
Assume such config file:
type = webdav
url = https://webdav.acme.com
vendor = other
user = foo
pass = bar
This command works fine:
$ rclone ls mail:
But this one fails:
$ rclone ls
2018/11/16 15:21:58 ERROR : : error listing: couldn’t list files: 401 Unauthorized
2018/11/16 15:21:58 Failed to ls: couldn’t list files: 401 Unauthorized
I’ve basically copied all values from config file into command line, including obfuscated password, but it looks like rclone doesn’t pass them down to backend.
Does the password have special chars or something that needs to be in quotes ?
I’m copying already obfuscated password from config file, since that what I’ve understood from other issues on GH and SO. But yeah, original password contains special chars.
Have you tried using ’ or " to enclose the password on the command line? I can’t replicate what you are doing though since I don’t know what chars are in there.
GH - github?
SO - ?
Yes, I did, but to clarify: I put in CLI obscrured password “hash” that has no special characters. One that stored in config file or produced via “rclone obscure mypass”.
SO - StackOverflow.
You can also try to use the RCLONE_CONFIG_PASS or RCLONE_WEBDAV_PASS in your script to see if that works as well rather than passing on the command line.
Both of those give no different result compared to CLI argument.
Also one thing i’ve noticed:
rclone obscure 123 gives different “hash” each time i use it.
I think you can use this:
Thanks for your suggestion, but whole idea of dynamic backend is to not create remotes in config file an just use one-liner…
What is stopping you from using something like that in a one liner?
Ah looks like this isn’t being parsed properly…
https://beta.rclone.org/branch/v1.44-094-g8c8dcdd5-fix-webdav-auth-beta/ (uploaded in 15-30 mins)
Works like charm, thanks!
Thanks for testing. I’ve merged that into the latest beta and the fix will be in v1.45.