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

Fix remote wipe keychain storage (issue #1592) #1646

Merged
merged 2 commits into from
Nov 29, 2019

Conversation

misch7
Copy link
Member

@misch7 misch7 commented Nov 29, 2019

The app password for the remote wipe was constantly being written in WebFlowCredentials::slotFinished to the keychain, leading to unnecessary write and log overhead on the system.

This fix introduces a check to only store the app password once in a lifetime of the Account class. Also the method used to store the password will be renamed from setAppPassword to writeAppPasswordOnce to be more expressive.

Should solve these issues:

@misch7 misch7 added this to the 2.6.2 milestone Nov 29, 2019
The app password for the remote wipe was constantly being written in
WebFlowCredentials::slotFinished to the keychain, leading to unnecessary
write and log overhead on the system.

This fix introduces a check to only store the app password once in
a lifetime of the Account class. Also the method used to store the
password will be renamed from setAppPassword to writeAppPasswordOnce
to be more expressive.

Signed-off-by: Michael Schuster <michael@schuster.ms>
Signed-off-by: Michael Schuster <michael@schuster.ms>
@camilasan camilasan merged commit 76c7ab4 into master Nov 29, 2019
@camilasan camilasan deleted the fix-remote-wipe-keychain branch November 29, 2019 12:53
@camilasan
Copy link
Member

/backport to stable-2.6

@backportbot-nextcloud
Copy link

The backport to stable-2.6 failed. Please do this backport manually.

@camilasan
Copy link
Member

✔️ 🍒

@misch7
Copy link
Member Author

misch7 commented Nov 29, 2019

🍒 Cherry-picked to stable2.6

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.

2 participants