Skip to content

Generic package size limited to 32MiB #20830

Closed
@wtodd1

Description

@wtodd1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions