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

Repos published from OBS do not normalize URL #17118

Open
ggardet opened this issue Nov 20, 2024 · 0 comments
Open

Repos published from OBS do not normalize URL #17118

ggardet opened this issue Nov 20, 2024 · 0 comments
Labels
Backend Things regarding the OBS backend

Comments

@ggardet
Copy link
Member

ggardet commented Nov 20, 2024

Issue Description

On a private OBS instance, we create repositories for multiple distributions, including Ubuntu 20.04 and 22.04.
While the repo on OBS server works, it breaks when it is synced on an external mirror.
The reason seems to be the repos published from OBS do not normalize URL and the server used on the mirror do not normalize the URL either (while OBS server does the normalization when serving the files).

apt download mypackage complains:

E: Failed to fetch https://<mirror_path>/focal/./arm64/mypackage.deb  404  Not Found [IP: xxx.xxx.xxx.xxx 443]

(note the ./ in the path)

Expected Result

URL in repos should be normalized. I think this should happen before the generation of the file Packages.

How to Reproduce

Create a Ubuntu repo, move it to a webserver without URL normalization and try to download some packages with curl -v --path-as-is XYZ

Further Information

  • Latest release: 2.10
@hennevogel hennevogel added the Backend Things regarding the OBS backend label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Things regarding the OBS backend
Projects
None yet
Development

No branches or pull requests

2 participants