-
Notifications
You must be signed in to change notification settings - Fork 45
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
repository parsing fails due to unexpected HTTP headers #1157
Comments
I don't think this is related to HTTP headers. When RMT is mirroring a repo, it validates the checksums of primary.xml with the files it downloads, and that seems to fail in your case. Afaik |
I think it is the RMT server that is at fault here. The file is XML (Content-Type), but it is compressed with GZIP (Content-Encoding). Is the underlying Ruby framework unable to handle that properly (hard to imagine)? |
Can you share with us the |
The URL is |
I have a published repository from a project in IBS. It gets exported via NFS, which makes it simple to transfer the directory somewhere else. I copied the exported directory to my own webspace.
Adding and using the repository with
zypper ar -cf $URL $name && zypper ref -r $name
works as expected.Adding it as a custom repository with
rmt-cli repos custom add $URL $name && rmt-cli mirror repository $name
fails, rmt-cli complains about checksum mismatch in the files referenced byrepomd.xml
.It seems zypper does not pay attention to the headers in the HTTP response. But rmt-cli apparently does.
The HTTP headers for the
${sha256sum}-${tag}.xml.gz
files look like this:A similar file served by the typical RMT server looks like this:
The questions are:
Content-Type
andContent-Encoding
tags?Content-Type
andContent-Encoding
tags, instead of doing its own probing?The text was updated successfully, but these errors were encountered: