-
Notifications
You must be signed in to change notification settings - Fork 3
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
status
: Wrong password silently ignored / misleading output (HTTP remote)
#7
Comments
@efiop It would be great to be able to look into this one as part of updates to the status command. |
@dberenbaum Seems like this is more of an httpfs issue with this particular server. Normally it should indeed error out. I think this was discussed elsewhere, but I can't find any links yet. Lets keep this open for now in case someone else is running into this. |
For what it is worth, I did a bit of investigation and it seems that |
The same problem also shows itself when trying to do |
For the record: ^^^ https://discord.com/channels/485586884165107732/485596304961962003/1059218805106159687 checkout error is normal, the issue here is the lack of error in fetch, because we seem to take the code from dagshub as FileNotFoundError. |
Bug Report
Description
When using a HTTP remote with basic authentication and password prompt,
dvc status --cloud
does not recognize a failed authentication attempt (wrong/missing password) and outputs misleading information. Instead of an error message, DVC lists all my local files as if they do not exist on remote (regardless of whether they were already pushed or not).In fact, I'm experiencing similar behavior when using
dvc pull
and, for imported data,dvc update
. If the password is incorrect, DVC more or less ignores it and tells me that everything is up-to-date. This is rather problematic in a collaborative setting, since it's easy to mistype a password and miss out on important changes, etc.Reproduce
Prerequisite: A HTTP remote with basic authentication and
ask_password = true
dvc add image.jpg
dvc status --cloud
(correct password)dvc push
(correct password)dvc status --cloud
(correct password)dvc status --cloud
(wrong password or no password)Expected
An error message about the failed authentication attempt.
Environment information
Output of
dvc doctor
:Additional Information (if any):
We are using a Nexus system as our HTTP remote. With correct credentials,
dvc status
,dvc pull
,dvc push
, etc, works as expected. I don't know how DVC communicates with the HTTP storage, but if I try to fetch a file directly from the Nexus system via cURL and provide wrong credentials, the response is a 401 and so it seems this is something DVC should be able to pick up and react to.Please let me know if anything is unclear or if you need additional information.
The text was updated successfully, but these errors were encountered: