Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Primary and Alias addresses are switched when using MySQL as storage and authentication #1114

Open
1 task done
Har-Kuun opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Har-Kuun
Copy link

What happened?

In the case MySQL as storage backend and the authentication directory, when a user is assigned a primary address and an alias address through the database, the Stalwart seems to display the alias as the primary address and the primary address as the alias.

This seems more like a display/cosmetic problem, not affecting real login/usage though.

How can we reproduce the problem?

  1. Set up MySQL as the storage and authentication backend for Stalwart.
  2. Create a user with a primary address and an alias address
  3. Stalwart displays the swapped addresses.

DB Schema:

Image

Relevant data entries:

Image

Stalwart admin portal:

Image

Version

v0.11.x

What database are you using?

mySQL

What blob storage are you using?

mySQL

Where is your directory located?

SQL

What operating system are you using?

Linux

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Har-Kuun Har-Kuun added the bug Something isn't working label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant