1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-07 03:11:37 +01:00
gitea/modules/migration
Joakim Olsson 1ee7f8e966
fix: prevent panic when GitLab release has more links than sources (#36295)
The code incorrectly assumed rel.Assets.Links and rel.Assets.Sources
arrays have equal length. This causes index out of bounds panic when
migrating GitLab releases with more links than sources, which is common
with GoReleaser-generated releases.

Fixes #36292

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-01-05 21:48:12 +08:00
..
file_format_testdata Validate migration files (#18203) 2022-01-26 10:45:51 +01:00
schemas Validate migration files (#18203) 2022-01-26 10:45:51 +01:00
comment.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
downloader.go refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +00:00
error.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
file_format_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
file_format.go Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
issue.go Fix restore repo bug, clarify the problem of ForeignIndex (#22776) 2023-02-07 09:18:52 +08:00
label.go Scoped labels (#22585) 2023-02-18 21:17:39 +02:00
messenger.go Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
milestone.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
null_downloader.go refactor: decouple context from migration structs (#33399) 2025-02-07 05:37:32 +00:00
options.go Support migration from AWS CodeCommit (#31981) 2024-09-11 07:49:42 +08:00
pullrequest.go Fix some missed GitHeadRefName when renaming (#35102) 2025-07-17 14:01:11 +00:00
reaction.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
release.go fix: prevent panic when GitLab release has more links than sources (#36295) 2026-01-05 21:48:12 +08:00
repo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
retry_downloader.go remove context from retry downloader (#33871) 2025-03-14 00:28:57 +00:00
review.go Fix restore repo bug, clarify the problem of ForeignIndex (#22776) 2023-02-07 09:18:52 +08:00
schemas_bindata.go Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
schemas_dynamic.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
uploader.go Use a migration test instead of a wrong test which populated the meta test repositories and fix a migration bug (#36160) 2025-12-17 12:00:07 -08:00