Skip to content
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

FdoSecrets: only show unlock dialog when there is no unlocked & exposed database #8028

Merged

Conversation

Aetf
Copy link
Contributor

@Aetf Aetf commented May 9, 2022

The logic is:

  • If there're already unlocked collections, just use those,
  • otherwise, show the unlock dialog until there's an unlocked and exposed collection.

Fix #7574

This currently is based on #8022 because both touch the service unlock code. I'll rebase once that one is merged.

Testing strategy

Added unit test.

Type of change

  • ✅ New feature (change that adds functionality)

@Aetf Aetf force-pushed the feature/fdo-secrets-unlock-once branch from cb3891d to d1e512e Compare May 9, 2022 06:09
@Aetf Aetf requested a review from droidmonkey May 9, 2022 06:09
@codecov-commenter
Copy link

codecov-commenter commented May 9, 2022

Codecov Report

Merging #8028 (7697309) into develop (e2bf537) will increase coverage by 0.09%.
The diff coverage is 85.45%.

@@             Coverage Diff             @@
##           develop    #8028      +/-   ##
===========================================
+ Coverage    64.37%   64.46%   +0.09%     
===========================================
  Files          339      339              
  Lines        43576    43610      +34     
===========================================
+ Hits         28048    28109      +61     
+ Misses       15528    15501      -27     
Impacted Files Coverage Δ
src/fdosecrets/objects/Collection.cpp 83.94% <ø> (-0.90%) ⬇️
src/fdosecrets/objects/Service.h 100.00% <ø> (ø)
src/fdosecrets/objects/Service.cpp 83.17% <85.45%> (+0.12%) ⬆️
src/gui/DatabaseWidget.cpp 61.82% <0.00%> (-0.13%) ⬇️
src/core/Entry.cpp 82.86% <0.00%> (+0.20%) ⬆️
src/gui/DatabaseTabWidget.cpp 65.49% <0.00%> (+2.64%) ⬆️
src/gui/DatabaseOpenDialog.cpp 84.11% <0.00%> (+23.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2bf537...7697309. Read the comment docs.

@droidmonkey droidmonkey added this to the v2.7.2 milestone May 28, 2022
This commit implements the following logic:
* If there're already unlocked collections, just use those,
* otherwise, show the unlock dialog until there's an unlocked and exposed collection.

* Fixes keepassxreboot#7574
@droidmonkey droidmonkey force-pushed the feature/fdo-secrets-unlock-once branch from d1e512e to 7697309 Compare June 4, 2022 19:53
@droidmonkey droidmonkey merged commit 0f7b674 into keepassxreboot:develop Jun 4, 2022
@Aetf Aetf deleted the feature/fdo-secrets-unlock-once branch December 5, 2022 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FdoSecrets] Only show unlock prompt before search if there is no unlocked & exposed database
3 participants