gitea: 404 when clicking on composer package

Description

I have uploaded a composer package:

curl --user "xxx:aaa" --upload-file simpko-micropayment.zip  https://gitea.xxx.at/api/packages/xxx/composer?version=1.0.2

This worked, the package is shown in the packages list. But when clicking on the package I am getting a 404: https://gitea.xxx.at/xxx/-/packages/composer/simpko%2Fmicropayment/1.0.2

The logs are showing:

router: completed GET /xxx/-/packages/composer/simpko/micropayment/1.0.2 for 192.168.7.5:57914, 404 Not Found in 5.4ms @ web/goget.go:21(web.goGet)

The upload log:

router: completed PUT /api/packages/xxx/composer?version=1.0.2 for 192.168.7.5:57250, 201 Created in 38.9ms @ composer/composer.go:189(composer.UploadPackage)

Gitea Version

1.17.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

ubuntu

How are you running Gitea?

I am running the gitea-1.17.1-linux-amd64 binary

Database

MySQL

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

Just a guess, are you using a reverse-proxy? They would do some path escaping.