forgejo/services/release
Gusted 8572835160 fix: don't trip deleting attachment with missing permission error (#11642)
- Deleting attachments are also seen as updating attachments due to the frontend always sending a field to edit the name even if the name didn't change. This was not reflected in the unit tests.
- Refactor the updating attachment logic to be more flexible if a attachment does not exist, because it was just deleted or because someone is being malicious.
- Resolves forgejo/forgejo#11636

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11642
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2026-03-12 20:29:10 +01:00
..
release.go fix: don't trip deleting attachment with missing permission error (#11642) 2026-03-12 20:29:10 +01:00
release_test.go fix: don't trip deleting attachment with missing permission error (#11642) 2026-03-12 20:29:10 +01:00
tag.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00