dasharo-issues icon indicating copy to clipboard operation
dasharo-issues copied to clipboard

DTS: Entering empty password results in UI bugs

Open m-iwanicki opened this issue 8 months ago • 6 comments

Component

Dasharo Tools Suite

Device

QEMU Q35 Emulator

Dasharo version

No response

Dasharo Tools Suite version

v2.4.0

Test case ID

No response

Brief summary

Entering empty password results in DTS being stuck at Dasharo DPP credentials have been saved until enter has been pressed and then:

Your credentials give access to:
Dasharo Pro Package (DPP): NO
DTS Extensions: YES
Checking for available DTS extensions...
mc: <ERROR> Unable to list folder. Access Denied.
Press Enter to continue.

We have mc error and also for some reason DTS Extensions: YES Pressing Enter again results in UI freezing again but this time after clearing current UI (so we see only black screen). We have to press enter to show UI. After that every screen refresh (each key press) stops at blank screen and we have to press Enter to show anything.

Not only that but after that I couldn't use working credentials, DTS would display that they were ok but wouldn't save changes. It's possible that it is separate bug and it's impossible to change credentials after loading them once

How reproducible

100%

How to reproduce

  1. Start DTS in QEMU
  2. Enter any DPP e-mail, e.g. I tried abcd
  3. Enter empty password

Expected behavior

  • Don't allow empty password
  • Or fail gracefully (no mc errors, don't show DTS Extensions: YES if they are not available)
  • Don't freeze without informing user that they have to press something

Actual behavior

  • Allows empty password
  • follow up messages shouldn't be misleading and shouldn't display used command errors (mc in this case)
  • Waits for user input after displaying Dasharo DPP credentials have been saved (without informing user that they have to do something), then again each time it clears screen (waits for user input on empty black screen)

Screenshots

No response

Additional context

No response

Solutions you've tried

No response

m-iwanicki avatar May 09 '25 10:05 m-iwanicki

Possibly (partial) duplicate of https://github.com/Dasharo/dasharo-issues/issues/1156 (the first point). From what I remember fix for empty credentials was done here: https://github.com/Dasharo/meta-dts/releases/tag/v2.1.2 but underlying issue (screen freeze) wasn't fixed. Now we have regression (different errors, no check for empty password?) and underlying issue also came back. Maybe we should find the cause of this freeze along with fixing empty password bug to make sure it never comes back (and add test for this)

m-iwanicki avatar May 30 '25 12:05 m-iwanicki

Hi! I’d like to work on this issue as part of the bounty program. I've reviewed the bug description and plan to address the following:

  • Prevent submission of empty passwords
  • Ensure accurate messages for DTS Extensions and mc errors
  • Fix the screen redraw/freezing behavior after empty input

I've already started setting up the QEMU environment and will aim to submit a fix within a week. Please assign this issue to me if it's still available. Thanks!

sachin21212121 avatar Jun 30 '25 05:06 sachin21212121

@sachin21212121 welcome on board and good luck with the task. @DaniilKl @m-iwanicki please support @sachin21212121 in delivering expected results.

pietrushnic avatar Jun 30 '25 07:06 pietrushnic

I've already started setting up the QEMU environment and will aim to submit a fix within a week. Please assign this issue to me if it's still available. Thanks!

Great. Feel free to ask questions and report any other issues or unclear documentation.

DaniilKl avatar Jun 30 '25 09:06 DaniilKl

Sure @DaniilKl , thanks!

I've already started setting up the QEMU environment and will aim to submit a fix within a week. Please assign this issue to me if it's still available. Thanks!

Great. Feel free to ask questions and report any other issues or unclear documentation.

Sure @DaniilKl, thanks!

sachin21212121 avatar Jun 30 '25 09:06 sachin21212121

@sachin21212121 Is there any update? Any questsion?

macpijan avatar Jul 29 '25 10:07 macpijan

I'll take it!

xyhhx avatar Nov 22 '25 23:11 xyhhx

@xyhhx, great, let me know if you need any help!

DaniilKl avatar Nov 24 '25 08:11 DaniilKl