[bug] [on stable] "Use SSL" shows "off", while elsewhere it gets defaulted to "on" #953
Labels
No labels
approved, awaiting change
broken setup
bug
cannot reproduce
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs change/feedback
needs docs
needs tests
not a bug
not our bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma#953
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?
Your setup
From source
Extra details
Debian 12
Version
No response
PostgreSQL version
No response
What were you trying to do?
Use a STARTTLS-only mail setup, which has SSL disabled
I leave the "use SSL" to "off" in the settings, which its default in the UI
What did you expect to happen?
For it to not use SSL
What actually happened?
It started complaining about "unsupported TLS message", and when looking through wireshark, it was sending a TLS client hello to a non-TLS submission socket (587), which made the server break the connection
This happens through this bit here:
ssl: true,which does not reflect the UI
Logs
Severity
I cannot use it as easily as I'd like
Have you searched for this issue?
ah, ok, I know what's going on
this isn't strictly a bug but a UI /defaults issue
if there no value in the database, it'll show as false - but the config resolution will require an explicit false to override the default
try switching SSL on, saving, then off again -i have a hunch that it'll work
That indeed works, but the bug report is wrt the UI inconsistency
Unless there’s a garbage icon next to the setting in admin-fe, the setting is not set at all (in the database). Whatever state the input field assumes is similar to the value in the config file (or its lack therein).
In a similar vein an empty text field with and without garbage icon can also behvave differently: without it may be
niland use some fallback value or skip some logic, with its an explicit empty string.Afaik there’s no way to tell admin-fe to assume a specific value if a value exists in neither the config file nor db.
We cannot put
ssl: truein the default config since this name may not exist for different mailer backends or have a different meaning. Thus the defaults are inserted at runtime.Not defaulting to
ssl: truewill be detrimental for most mail setups.I’ll put a note in the settings description which should give enough of a hint to try setting it explicitly when encountering problems.
If you want a more explicit display for unset values in admin-fe, patches to improve the former (or taking up work on its replacement) are welcome.