Skip to content

Conversation

@jeffmarcilliat
Copy link

Summary

This PR fixes the UI bugs that occur when users submit an empty password during DPP credential entry (Dasharo/dasharo-issues#1326).

Problem: When users entered an empty password, the application:

  • Accepted the invalid input without validation
  • Showed raw mc: <ERROR> Unable to list folder. Access Denied messages
  • Displayed misleading "DTS Extensions: YES" despite access denial
  • Caused UI freezing requiring Enter key to proceed
  • Prevented subsequent credential updates with valid inputs

Solution:

  • Add validation in get_dpp_creds() to reject empty email/password with clear error messages
  • Add safety check in login_to_dpp_server() for empty credentials
  • Add validation in subscription_routine() when reading credentials from file
  • Remove invalid credential files that contain empty values
  • Fix credential file overwrite logic (use > instead of >> for first line)
  • Add proper quoting for variables and stderr redirection

Test plan

  • Launch DTS in QEMU Q35 emulator
  • Enter any email address and submit empty password
  • Verify error message "Password cannot be empty. Please try again." is displayed
  • Verify UI does not freeze
  • Verify no raw mc error messages are shown
  • Test with valid credentials to ensure normal flow still works

Fixes: Dasharo/dasharo-issues#1326

🤖 Generated with Claude Code

This fixes the UI bugs that occur when users submit an empty password
during credential entry. The application previously accepted invalid
input and became unresponsive.

Changes:
- Add validation in get_dpp_creds() to reject empty email/password
- Add safety check in login_to_dpp_server() for empty credentials
- Add validation in subscription_routine() when reading from file
- Remove invalid credential files that contain empty values
- Add proper error messages for validation failures
- Fix credential file overwrite (use > instead of >> for first line)
- Add proper quoting for variables and stderr redirection

Fixes: Dasharo/dasharo-issues#1326

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@DaniilKl DaniilKl requested a review from m-iwanicki January 12, 2026 08:47
echo ""
read -p "Enter password: " 'DPP_PASSWORD'

# Validate that email is not empty
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this check before asking for password, let's fail immediately. That way OSFV tests should pass without any changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DTS: Entering empty password results in UI bugs

2 participants