Long package version name causes overflow #12235

Closed
opened 2025-11-02 10:02:54 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @kittenswolf on GitHub (Dec 19, 2023).

Description

A version name the length of a SHA1 hash (40 chars) causes an overflow in the version list.

Repro on try.gitea.io: 6444144e52

Screenshots

grafik

Gitea Version

1.21.2

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

Windows 10

Browser Version

Firefox 120.0.1 (64-Bit)

Originally created by @kittenswolf on GitHub (Dec 19, 2023). ### Description A version name the length of a SHA1 hash (40 chars) causes an overflow in the version list. Repro on try.gitea.io: https://try.gitea.io/kw-test/-/packages/generic/package-test/6444144e52f72414b474981ba98f6211f66dbac9 ### Screenshots ![grafik](https://github.com/go-gitea/gitea/assets/26834699/91e22ee4-3c32-49cf-a55c-89854246d35c) ### Gitea Version 1.21.2 ### Can you reproduce the bug on the Gitea demo site? Yes ### Operating System Windows 10 ### Browser Version Firefox 120.0.1 (64-Bit)
GiteaMirror added the topic/packagestype/bugtopic/ui labels 2025-11-02 10:02:54 -06:00
Author
Owner

@me-heer commented on GitHub (Dec 27, 2023):

Hi, can I work on this?

@me-heer commented on GitHub (Dec 27, 2023): Hi, can I work on this?
Author
Owner

@delvh commented on GitHub (Dec 27, 2023):

sure

@delvh commented on GitHub (Dec 27, 2023): sure
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12235