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

Public yum repositories return 200 OK for nonexistent content instead of 404 #72

Open
paralllax opened this issue May 5, 2023 · 0 comments

Comments

@paralllax
Copy link

Hello,

As it currently is, the repository will return a 200 OK for any request, whether it exists or not, then serve a page displaying a 404, instead of servicing the return code. When mirroring the repository it causes issues when searching for a treeinfo file or similar as it sees the 200 OK and attempts to pull - then fails as it isn't present.

$ curl -s "http://exablaze.com/downloads/yum/redhat/el7/x86_64/repodata/treeinfo" -ILk | grep HTTP
HTTP/1.1 302 Found
HTTP/1.1 302 Found
HTTP/1.1 200 OK
$ curl -s "http://exablaze.com/downloads/yum/redhat/el7/x86_64/repodata/treeinfo" -Lk | pup 'title:contains("404") text{}'
Exablaze - Error 404 - Page Not Found

I'm unsure if this is the best place to reach out regarding the issue, let me know if this should be posted elsewhere! Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant