systemli / userli

Web application to (self-) manage email users and encrypt their mailboxes.
https://systemli.github.io/userli/
GNU Affero General Public License v3.0
64 stars 13 forks source link

fix: bring back old logic of `findOneBySource()` in AliasRepository #590

Closed doobry-systemli closed 4 months ago

doobry-systemli commented 4 months ago

In #556, the logic of functions in AliasRepository got changed. This led to the situation that it was possible to delete already deleted aliases.

See https://github.com/systemli/userli/commit/544ec33d0f4f734c3f3602804f2636658725d54f#diff-c1b762cb165cfafb00e55e399682546f2e6574cacdd07a9a3d66ff9440350901L16-R32

Also adds integration tests for re-using existing and deleted alias names.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
22.2% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud