-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remote sync doesn't verify downloaded file #10910
Comments
Adding the check is easy. Can anyone tell me how to check the header though? Is there a method that does check for a kdbx header already? |
The test could also just show a different success message if the command succeeds but no file is downloaded to indicate no errors happened but nothing was downloaded either. |
We have a method to only read the public headers. That'll suffice. https://github.com/keepassxreboot/keepassxc/blob/develop/src%2Fgui%2FDatabaseOpenWidget.cpp#L228 |
@droidmonkey thanks. I have added a check. See #10915 |
Overview
At least when using the "Test" button the test is successful if the command succeeds and creates either a file or a directory.
Steps to Reproduce
{TEMP_DATABASE}
Expected Behavior
The file must exist and have a KDBX header, no other result should be accepted. Testing against an empty remote will fail but that might be good as long as the error (stdout + stderr) is displayed.
Actual Behavior
An empty directory is accepted as a successful download or any file that isn't necessarily a database.
The text was updated successfully, but these errors were encountered: