Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

[BUG] Alert dialog is shown 2 times when synchronizing repository and doesn't save passphrase #828

@Dioxo

Description

@Dioxo

Describe the bug
If not checked "remember password"
The alert dialog when synchronizing the repository is shown twice, the second time it shows as "wrong passphrase".

If checked "remember password"
The alert dialog is shown once, but password is not saved.

It only happens with this option, if I try with pull or push, it doesn't display many times and saves the password (but i don't see any confirmation when adding wrong or correct password, not sure what this prompt does...)

To Reproduce
Steps to reproduce the behavior:

  1. Clear saved passphrase for local ssh key (if there's any)
  2. Try to sync

Expected behavior
The alert dialog only shows once and the passphrase is saved if checked box.

Device information (please complete the following information):

  • Device: Redmi Note 8
  • OS: 9.0
  • App version : Recently pulled from repo.

potential cause
I tried to solve this problem but I couldn't because this error is generated since synchronization makes a call to pull and another to push.
It's each call that generates the alert dialog. It's normal that the error "wrong passphrase" comes up because the application tries to make 2 consecutive calls and takes them as if it was a password error, but in reality the first one is a call to pull and the next one is to push.

And because the second time the application considers that it was a "password error", it deletes the saved password.

I add captures of the application stack to justify why I think it's the push and pull calls that call this method of displaying the alert dialog. At the bottom left you can see that the first time is called by a pull command and the second time is the push command.

The firs time that the prompt is shown.
3

The second time.
4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions