Comments (4)
- Open web UI. Navigate to Profile -> Packages. You should see the pushed image with the name
namespace/name
.- Click on the said image.
What URL do you see? Could you copy out the original link to see whether it is a/b
or a%2fb
?
from gitea.
What URL do you see? Could you copy out the original link to see whether it is
a/b
ora%2fb
?
When I click on a container in package list (name label is namespace/name
), the URL is as follows: http://gitea.example.com/username/-/packages/container/namespace%2Fname/latest
. So, with %2F. This page is 404.
from gitea.
If you access the URL with %2F
directly, what does Gitea side see (the Gitea logs) ? If Gitea also sees %2F
, then it is a Gitea's bug. If Gitea only sees /
, then it is the reverse proxy's problem: it shouldn't decode the path.
from gitea.
If you access the URL with
%2F
directly, what does Gitea side see (the Gitea logs) ? If Gitea also sees%2F
, then it is a Gitea's bug. If Gitea only sees/
, then it is the reverse proxy's problem: it shouldn't decode the path.
Gitea sees /
. And it is, apparently, a reverse proxy problem, as I am running Gitea behind an NGINX proxy.
I confirm that without NGINX reverse proxy, the issue does not reproduce.
I investigated the issue and managed to find a solution. It was incorrect reverse proxy configuration.
I had reverse proxy of NGINX configured as follows (unrelated directives are omitted for clarity):
location / {
proxy_pass http://127.0.0.1:3000/;
}
Removing the trailing slash in proxy_pass directive fixed the issue.
location / {
proxy_pass http://127.0.0.1:3000;
}
I also noticed that the correct configuration is also outlined in documentation.
@wxiaoguang Thank you for helping to figure this out! It was my mistake in the end.
from gitea.
Related Issues (20)
- Automatically update Gitea Actions in every repo
- docker-compose.yaml HOT 1
- Incorrect migration protocol from Gitlab HOT 2
- repo directory path styles HOT 1
- Generalizing the functionality for adding members in the members tab for organizations. HOT 1
- Option To Sign Web Interface Commits As Author And Not As System
- Show WebAuthn last usage
- Weird HTTP code when invalid tag name is provided
- Tag name rules
- Sort tags by commit date
- Add `refs/pull/1/merge` reference for pull request to avoid the merged commit id missed.
- Debian Package Registry: duplicate key value violates unique constraint "UQE_package_version_s" HOT 1
- SIGSEGV when pushing sha256 repository HOT 8
- home page title overflow HOT 2
- Gogs migration tool HOT 3
- Revise server side hook configuration to support dynamic hook file extensions. HOT 3
- Merged PR should hidden time tracker? HOT 2
- No operation for a long time, no response HOT 5
- Data race during testing HOT 3
- Option to skip issue details in /times endpoints reply HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitea.