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

unlock encrypted wallet "OK" button bugfix #138

Merged

Conversation

mjdietzx
Copy link
Contributor

@mjdietzx mjdietzx commented Nov 27, 2020

When trying to send a transaction from an encrypted wallet, the ask
passphrase dialog would not allow the user to click the "OK" button
and proceed. Therefore it was impossible to send a transaction
through the gui. It was not enabling the "OK" button after the
passphrase was entered by the user, because it was using the same
form validation logic as the "Change passphrase" flow.

I reported this in a comment in #136. But then I realized this seems to be a flat out bug.

When trying to send a transaction from an encrypted wallet, the ask
passphrase dialog would not allow the user to click the "OK" button
and proceed. Therefore it was impossible to send a transaction
through the gui. It was not enabling the "OK" button after the
passphrase was entered by the user, because it was using the same
form validation logic as the "Change passphrase" flow.
@mjdietzx
Copy link
Contributor Author

This bug was introduced in this commit 6e95011#diff-6fb84ee9edb2f6effebfefeea02e3548508d2043ea997132a17d9f44505f28d4L223, and it's bc the Decrypt case was removed from the switch statement (which the Unlock case had been falling back to / relying on)

@maflcko maflcko changed the title qt: unlock encrypted wallet "OK" button bugfix unlock encrypted wallet "OK" button bugfix Nov 28, 2020
@maflcko
Copy link
Contributor

maflcko commented Nov 28, 2020

review ACK 8008ef7

nice catch!

@maflcko maflcko added this to the 0.22.0 milestone Nov 28, 2020
@maflcko maflcko added the Bug Something isn't working label Nov 28, 2020
Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

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

ACK 8008ef7, I have reviewed the code and it looks OK, I agree it can be merged.

Sorry for introducing this bug 🤦‍♂️

@maflcko maflcko merged commit 854b36c into bitcoin-core:master Nov 28, 2020
@Sjors
Copy link
Member

Sjors commented Nov 28, 2020

It would be good to push the git tags from the main repo to this repo as well, so it's more clear which releases the regression is present in (looks like this one isn't in v0.21).

@mjdietzx mjdietzx deleted the qt-unlock-wallet-ok-enabled-bugfix branch November 28, 2020 14:21
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Nov 28, 2020
8008ef7 qt: unlock wallet "OK" button bugfix (Michael Dietz)

Pull request description:

  When trying to send a transaction from an encrypted wallet, the ask
  passphrase dialog would not allow the user to click the "OK" button
  and proceed. Therefore it was impossible to send a transaction
  through the gui. It was not enabling the "OK" button after the
  passphrase was entered by the user, because it was using the same
  form validation logic as the "Change passphrase" flow.

  I reported this in a comment in bitcoin-core/gui#136. But then I realized this seems to be a flat out bug.

ACKs for top commit:
  MarcoFalke:
    review ACK 8008ef7
  hebasto:
    ACK 8008ef7, I have reviewed the code and it looks OK, I agree it can be merged.

Tree-SHA512: cc09b34c7f3aea09729e1c7ccccff05dc11fec56fee2ad369f2d862979572b1edd8b7e738ffe6e91d35d071b819b0c3e0f5d48bf5e27427a80af4a28893f8aaf
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jan 17, 2022
Summary:
When trying to send a transaction from an encrypted wallet, the ask passphrase dialog would not allow the user to click the "OK" button and proceed. Therefore it was impossible to send a transaction through the gui. It was not enabling the "OK" button after the passphrase was entered by the user, because it was using the same form validation logic as the "Change passphrase" flow.

This bug was introduced in D10737 (v0.24.7).

This is a backport of [[bitcoin-core/gui#138 | core-gui#138]]

Test Plan: In `bitcoin-qt`, try to send a transaction using an encrypted wallet. Verify that the "OK" button is not disabled in the passphrase dialog after typing at least one character in the passphrase field.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10831
@bitcoin-core bitcoin-core locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants