jojo/services/release
forgejo-backport-action 2e6fc8aaf0 [v14.0/forgejo] fix: don't trip deleting attachment with missing permission error (#11658)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/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

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11658
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2026-03-12 21:21:02 +01:00
..
release.go [v14.0/forgejo] fix: don't trip deleting attachment with missing permission error (#11658) 2026-03-12 21:21:02 +01:00
release_test.go [v14.0/forgejo] fix: don't trip deleting attachment with missing permission error (#11658) 2026-03-12 21:21:02 +01:00
tag.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00