Slash in Docker package #13062

Closed
opened 2025-11-02 10:29:01 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @lolen on GitHub (May 29, 2024).

Description

When publishing a docker image to packages and the name is example.com/owner/repository/app:latest, there is a problem with formatting the name when there is a slash (/)

Repository example:
https://demo.gitea.com/lolen/docker

Packages:
https://demo.gitea.com/lolen/docker/packages

Gitea Version

1.23.0+dev-151-gc93cbc991e

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

This is the latest version (1.22) running with binary and reverse proxy on nginx according to the official documentation, but I also reproduced this step on demo.gitea.com

Database

None

Originally created by @lolen on GitHub (May 29, 2024). ### Description When publishing a docker image to packages and the name is `example.com/owner/repository/app:latest`, there is a problem with formatting the name when there is a slash (`/`) Repository example: https://demo.gitea.com/lolen/docker Packages: https://demo.gitea.com/lolen/docker/packages ### Gitea Version 1.23.0+dev-151-gc93cbc991e ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/3825268/56277322-0d83-4500-beca-5b1d4a850426) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? This is the latest version (1.22) running with binary and reverse proxy on nginx according to the official documentation, but I also reproduced this step on demo.gitea.com ### Database None
GiteaMirror added the type/bug label 2025-11-02 10:29:01 -06:00
Author
Owner

@wxiaoguang commented on GitHub (May 29, 2024):

What's your nginx config? The config document has been improved in 1.22

https://docs.gitea.com/administration/reverse-proxies

@wxiaoguang commented on GitHub (May 29, 2024): What's your nginx config? The config document has been improved in 1.22 https://docs.gitea.com/administration/reverse-proxies
Author
Owner

@wxiaoguang commented on GitHub (May 29, 2024):

According to your screenshot, the URL docker%2Fsecond is right and expected. It must be escaped that way.

@wxiaoguang commented on GitHub (May 29, 2024): According to your screenshot, the URL `docker%2Fsecond` is right and expected. It must be escaped that way.
Author
Owner

@lolen commented on GitHub (May 29, 2024):

My configuration is according to version 1.22, I thought it was a bug and unexpected formatting.

@lolen commented on GitHub (May 29, 2024): My configuration is according to version 1.22, I thought it was a bug and unexpected formatting.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13062