moolticute icon indicating copy to clipboard operation
moolticute copied to clipboard

Add file freeze when unplugging USB

Open rms5566 opened this issue 5 years ago • 4 comments

Expected behavior

If you unplug your Mooltipass right after you pressed the save button inside the Files TAB Moolticute should cancel the current operation and return a error message.

Actual behavior

If you unplug your Mooltipass right after you pressed the save button the progress bar show's 100% and you can't do anything inside the Files TAB anymore.

Step by step guide to reproduce the problem

  1. connect your Mooltipass Mini BLE with USB
  2. enter your smartcard and pin
  3. upload a file and press save in Moolticute under the Files TAB
  4. don't accept the prompt on the Mooltipass and disconnect it from usb
  5. Moolticute is stuck at 100% upload and you can't press the "Enter File Management Mode button anymore".

Moolticute Version

0.43.14-testing

Operating System

Mention if you are using either:

  • Windows 10 Pro

Mooltipass Device

  • The Mooltipass Mini BLE

rms5566 avatar Apr 30 '20 11:04 rms5566

I strongly recommend not disconnecting the USB cables when you're storing data, as you're risking database corruption

limpkin avatar Apr 30 '20 13:04 limpkin

That makes sense. But is there any security measure to avoid this? What would happen If the prompt dissapear straight when you discconect your Mooltipass? I mean it is my own fault when I disconnect my Mooltipass during data transfer. But if there is a prompt and I disconnect my Mooltipass I shouldn't be able to accept the prompt anymore to store any file. I think the data is transfered after you accepted the prompt right?

rms5566 avatar Apr 30 '20 13:04 rms5566

Oh, I mean the bug is definitely valid, it's just a side note ;)

limpkin avatar May 19 '20 09:05 limpkin

🤣

rms5566 avatar May 19 '20 09:05 rms5566