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

[SSSS] User password is asked multiple times then the app crashes when trying to reset the recovery key. #8861

Open
yostyle opened this issue Jul 8, 2024 · 3 comments
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@yostyle
Copy link
Contributor

yostyle commented Jul 8, 2024

Steps to reproduce

case 1:

  1. Go to Settings > Security & Privacy
  2. In Secure Backup section tap on "Set up on this device".
  3. Choose "Reset everything"
  4. Tap on "Proceed to resest"
  5. Select "Use a Security Key"
  6. Enter your password
Screen_recording_20240708_124924.mp4

case 2:

  1. secure_backup_required is enabled in wellknown configuration
  2. Log in to Element Android
  3. Choose "Reset everything"
  4. Tap on "Proceed to resest"
  5. Select "Use a Security Key"
  6. Enter your password
Screen_recording_20240704_191824.mp4

Outcome

What did you expect?

Get a recovery key

What happened instead?

User password is asked multiple times and the app crashes.

bootstrapTask invoked from startInitializeFlow method is called multiple times :

Your phone model

Pixel 8 Pro

Operating system version

Android 14

Application version and app store

Element 1.6.16

Homeserver

matrix.org

Will you send logs?

No

Are you willing to provide a PR?

No

@yostyle yostyle added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Jul 8, 2024
@yostyle yostyle changed the title [SSSS] User password is asked multiple times and the app crashes when trying to set up the recovery key. [SSSS] User password is asked multiple times and the app crashes when trying to reset the recovery key. Jul 8, 2024
@yostyle yostyle changed the title [SSSS] User password is asked multiple times and the app crashes when trying to reset the recovery key. [SSSS] User password is asked multiple times then the app crashes when trying to reset the recovery key. Jul 8, 2024
@yostyle
Copy link
Contributor Author

yostyle commented Jul 8, 2024

@bmarty @BillCarsonFr We need to understand why startInitializeFlow method may be called multiple times ? If not what is the right way to fix that ?

@BillCarsonFr
Copy link
Member

@bmarty @BillCarsonFr We need to understand why startInitializeFlow method may be called multiple times ? If not what is the right way to fix that ?

Hello @yostyle , I suspect that what you are seeing is a regression due to #8786

When UIA kicks in, the state is set to ReAuth step that will then show the ReAuthFragment that then does an auto submit (calling again startInitializeFlow)

val viewModel = ViewModelProvider(this).get(BootstrapReAuthViewModel::class.java)
if (!viewModel.isFirstSubmitDone) {
viewModel.isFirstSubmitDone = true
submit()
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

2 participants