-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: nextcloud client failed to parse netrc #7177
Comments
Same here, on:
I have evidence that it synced normally before the latest update of nextcloudcmd, i.e. before 2024-09-16 |
I also had it working before, and now it is throwing an error.
|
same here
|
Same here, running FreeBSD:
|
I, too, have the same issue on FreeBSD 14.1-RELEASE-p5, following a Nextcloud upgrade. |
Do we have yet a solution for this Problem? Since that day my backup is not working! Machine is Linux Ubuntu 22.04 - Nextcloud 3.14.3-20241107.180900 |
@Rudiberto as temporary workaround, I am using something like "nextcloudcmd -u user -p $(cat $passwordfile)". |
Thank You, very much. I will test that. |
This is my main suspect in the Source code. The function seems to catch a misconfiguration, but is probably implemented incorrectly, because when parsing the '.netrc' it becomes an '\n' filled in after the password(s) for each end of line. Formerly it was done this way: |
Bump I also encountered the same problem, using nextcloudcmd |
Fixes: nextcloud#7177 Signed-off-by: Fredrik Eriksson <[email protected]>
Fixes: nextcloud#7177 Signed-off-by: Fredrik Eriksson <[email protected]>
Just a note that this will protect the password from being logged in shell history and such, but password will still be visible in clear text for anyone who can list the process tree on the machine (and it might still be logged in some audit logs). Maybe not a problem for everyone, but something to keep in mind. As noted in my PR I think the problem is the tokenizing of the netrc content where it expects every field to be separated by " \n\t". I haven't tested but a "netrc-file" formated like this might actually work (space before newline and tab after):
|
I have tried different variations of my |
Fixes: nextcloud#7177 Signed-off-by: Fredrik Eriksson <[email protected]>
Fixes: nextcloud#7177 Signed-off-by: Fredrik Eriksson <[email protected]>
Fixes: #7177 Signed-off-by: Fredrik Eriksson <[email protected]>
Bug description
After upgrading to 3.14.0, nextcloud client commandline (
nextcloudcmd
) failed to parse netrc credential with-n
option. As a result, nextcloud server prompt for credential.On the other hand, using
--user
and--password
options work.Steps to reproduce
Expected behavior
nextcloudcmd should parsed netrc.
Which files are affected by this bug
netrc
Operating system
Linux
Which version of the operating system you are running.
NixOS 24.11.20240919.c04d565 (Vicuna) x86_64
Package
Distro package manager
Nextcloud Server version
29.0.4
Nextcloud Desktop Client version
3.14.0
Is this bug present after an update or on a fresh install?
Fresh desktop client install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
Nextcloud Server logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: