postalserver / postalserver/postal

Database entries not getting deleted

Open
#3,146 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
Ruby
Stars
16.8k
Forks
1.3k
Avg merge
13d 7h
Merged PRs (30d)
2

Description

Hi all,

I think i found a problem with the current version where entries in the database are not getting removed. I found this problem when testing and trying to use the same name and shortname when creating a new mail server in the UI.

## To Reproduce

1. Create a new mail server under "(Organisation name)→ Build a new mail server" with name test & id 577 (Doesn't matter which name & ID)
2. Delete the mail server under "Settings -> delete -> Delete this mail server and all messages"
3. Create the mail server again with the same name & id

I then got the following error:
![image](https://github.com/user-attachments/assets/a0cfa1ea-f0d8-4931-8933-b363b07cf459)

When you look in the database under the postal database in the servers table you see the following:
![image](https://github.com/user-attachments/assets/fe863705-eebe-4ef0-ac71-0bf59b3b0eda)
It is not only the servers table, there are also still refrences in the domains table and likely many more.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.