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

"Export successful" message displayed prematurely #1088

Closed
eloquence opened this issue May 8, 2020 · 6 comments
Closed

"Export successful" message displayed prematurely #1088

eloquence opened this issue May 8, 2020 · 6 comments
Assignees
Labels
bug Something isn't working needs/reproducing

Comments

@eloquence
Copy link
Member

Tested in 0.1.6 release of the client on production Qubes setup, i.e. the full current production configuration, using the STR below, but simpler STR may suffice.

STR

  1. Submit 3 files as a new source through the SI.
  2. Sync with the client to pick up those files.
  3. Download all 3 files using the client.
  4. Export each individual file to a LUKS drive.

Expected behavior

All files are exported successfully after the user types in the password.

Observed behavior

For one of the files, "Export successful" message appears before the user types in the password. Only subsequently, the user is prompted to enter their password, and the export actually completes.

@eloquence eloquence added bug Something isn't working needs/reproducing labels May 8, 2020
@eloquence
Copy link
Member Author

eloquence commented May 8, 2020

This seems potentially race condition-ish, so may be difficult to repro exactly. In this particular test, I initially had the USB plugged in before sd-devices came up, which could have contributed to a problematic state. (If the drive is plugged in before sd-devices starts, it will never be attached, and initial exports will always fail.)

See also #990 which could relate to a similar problematic state.

@sssoleileraaa
Copy link
Contributor

This is likely due to the way we reuse the continue button for different tasks. Throughout the export workflow we disconnect the continue button signal from its previous slot so that we can connect it to a new slot to handle the new step in the process. My guess is that when we are exporting a file, it is somehow connected to the export successful handler. I haven't looked into this theory, but it's something to check on.

@ninavizz
Copy link
Member

Would this be a good time to insert that extra step, then, that I'm advocating for to address usability needs... which wd be to acknowledge that the user is now in "Passphrase accepted, export happening" mode?

It had previously been flagged that there was concern that such a screen cd be weird, as the export itself is likely to take just a few seconds... but I'd be ok setting such a screen to show for a minimum of 3 seconds (or however long one would reasonably need to read the minimal state change on the screen).

@eloquence
Copy link
Member Author

@ninavizz The initial goal is to understand better when the bug occurs, and then we can scope a fix. Since it's a bugfix, we'll likely be conservative about additional UX changes just to resolve this issue.

I'll poke at this more during QA this sprint, but we'll most likely not attempt a fix until the next sprint.

@ninavizz
Copy link
Member

@eloquence Understood... TL:DR in my comment, tho, was flagging that the export process could simply be happening much more quickly than the UI was built to support as-is? If that hypothesis is off, of course, I'll shutup and punt my UI request to a later ticket. :D

@rocodes
Copy link
Contributor

rocodes commented Jun 24, 2024

I fixed this one a while back and didn't close it - closing now

@rocodes rocodes closed this as completed Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs/reproducing
Projects
None yet
Development

No branches or pull requests

5 participants