Skip to content

Fix bugs introduced by database refactor #2491#2503

Merged
droidmonkey merged 3 commits intodevelopfrom
feature/db-refactor-bugfixes
Nov 23, 2018
Merged

Fix bugs introduced by database refactor #2491#2503
droidmonkey merged 3 commits intodevelopfrom
feature/db-refactor-bugfixes

Conversation

@phoerious
Copy link
Copy Markdown
Member

@phoerious phoerious commented Nov 23, 2018

Description

Fixes bugs introduced by the refactoring of our database classes (#2491).

Resolves #2502 by making sure that password fields are cleared when they are hidden.
Resolves issues no. 1 and 3 of #2499 by fixing conditions and reworking connected signals and tracking of added keys in our SSH agent feature.

Types of changes

  • ✅ Bug fix (non-breaking change which fixes an issue)

Checklist:

  • ✅ I have read the CONTRIBUTING document. [REQUIRED]
  • ✅ My code follows the code style of this project. [REQUIRED]
  • ✅ All new and existing tests passed. [REQUIRED]
  • ✅ I have compiled and verified my code with -DWITH_ASAN=ON. [REQUIRED]

@phoerious phoerious added this to the v2.4.0 milestone Nov 23, 2018
@phoerious phoerious added the bug label Nov 23, 2018
@phoerious phoerious changed the title Fix bugs introduced by Fix bugs introduced by database refactor #2491 Nov 23, 2018
@phoerious phoerious force-pushed the feature/db-refactor-bugfixes branch from 07862f2 to 62dc4f4 Compare November 23, 2018 12:29
Copy link
Copy Markdown
Member

@droidmonkey droidmonkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, this will be further fixed by a refactor on the unlock widgets.

@droidmonkey droidmonkey merged commit 785a64c into develop Nov 23, 2018
@droidmonkey droidmonkey deleted the feature/db-refactor-bugfixes branch November 23, 2018 12:50
void SSHAgent::removeIdentityAtLock(const OpenSSHKey& key, const QUuid& uuid)
/**
* Change "remove identity on lock" setting for a key already added to the agent.
* Will to nothing if the key has not been added to the agent.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will do nothing


OpenSSHKey keyCopy = key;
keyCopy.clearPrivate();
m_addedKeys[keyCopy] = removeOnLock;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, in 2.3.4, only those keys with the option "remove at lock" were removed from the ssh agent upon closing keepassxc.
see #2980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

high priority 🚨 pr: bugfix Pull request fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Passwords are leaked under certain circumstances

3 participants