mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[GH-ISSUE #697] [Bug]: Chicken-and-egg: Cannot enable Advanced Authentication without sending test email, cannot send test email without enabling Advanced Authentication #465
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#465
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @luckygreen on GitHub (Mar 14, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/697
Originally assigned to: @shrunbr on GitHub.
Bug Description
SMTP authentication fails with "Username and Password are required when
authentication is enabled" despite both fields being populated in the UI
and confirmed present in the database. Additionally, the Advanced
Authentication enable flow has a circular dependency: clicking "Enable"
requires a test email to be sent first, but the "Send Test Email" button
is grayed out and non-interactive until auth is enabled.
Expected Behavior
SMTP test email sends successfully when username and password are
configured. The "Send Test Email" button should be functional
independently of auth state, so SMTP can be verified before enabling
Advanced Authentication.
Steps to Reproduce
SQLite as workaround:
smtp_host, smtp_port, smtp_security (ssl), smtp_auth_enabled (true),
smtp_username, smtp_password, smtp_from_email, smtp_from_name
required when authentication is enabled"
present in the database
Printer Model
X1 Carbon
Bambuddy Version
v0.2.2b4
Printer Firmware Version
01.11.02.00
Installation Method
Manual (git clone)
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
Screenshots
No response
Additional Context
No response
Checklist
@shrunbr commented on GitHub (Mar 14, 2026):
This can be assigned to me, I am in the process of fixing this.
@luckygreen commented on GitHub (Mar 14, 2026):
I manually injected the SMTP parameters, including username and password, into the DB. The GUI now displays the correct SMTP user name, a masked password, as well as the rest of the SMTP settings. However, sending a test email still fails with an error message that a user ID and password are required. What did I fail to inject into the DB?
@shrunbr commented on GitHub (Mar 14, 2026):
I've noticed this as well, it does not fetch SMTP settings from the database upon testing. It's using what is there in the frontend. I've seen this in web apps before so it's not entirely uncommon. I'll leave this functionality up to @maziggy.
@maziggy - Do you want users to be able to test SMTP without needing to re-enter SMTP credentials?
@maziggy commented on GitHub (Mar 14, 2026):
Yup, why not?
@cadtoolbox commented on GitHub (Mar 14, 2026):
If I remember correctly, that was by design to check your SMTP settings before saving. It may need a re-review.
@shrunbr commented on GitHub (Mar 14, 2026):
Not sure why we can't have it both ways. I'll play around with this later tonight.
@maziggy commented on GitHub (Mar 15, 2026):
https://github.com/maziggy/bambuddy/pull/710