Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic package size limited to 32MiB #20830

Closed
wtodd1 opened this issue Aug 17, 2022 · 1 comment
Closed

Generic package size limited to 32MiB #20830

wtodd1 opened this issue Aug 17, 2022 · 1 comment
Labels

Comments

@wtodd1
Copy link

wtodd1 commented Aug 17, 2022

Description

If you try to upload a package that is larger than 32MiB to the generic package registry, the upload appears to succeed, and the package can be seen in the web ui, but downloading the package later gives a 0 byte file.

I suspect this is due to the hard-coded buffer size on this line.

Looking at references to CreateHashedBufferFromReader, the 32MiB limit also seems to apply to the other package registries as well.

Gitea Version

1.17.0

Can you reproduce the bug on the Gitea demo site?

I did not receive the confirmation email after registering, so I was unable to attempt it.

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Reproduced on docker and Windows 10.

Database

SQLite

@lunny
Copy link
Member

lunny commented Aug 18, 2022

This has been fixed by #20635

@lunny lunny closed this as completed Aug 18, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants