Bug 2046195
Summary: | Katello::Errors::Pulp3Error: Treeinfo file should have INI format | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Ganesh Payelkar <gpayelka> |
Component: | Pulp | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED NOTABUG | QA Contact: | Lai <ltran> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.10.1 | CC: | ggainey, kkinge |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-01-28 14:42:10 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ganesh Payelkar
2022-01-26 11:30:17 UTC
The only way for Pulp to know there's a .treeinfo file in a repo, is to look for it (make a GET request for (url)/.treeinfo or (url)/treeinfo). If there isn't one, the remote server responds with a 404, and pulp continues on its way. ltb-project.org is misconfigured. If you ask it for something that doesn't exist, rather than responding with a 404 (per the HTTP spec), it redirects you to the home-page with a "302 Found", which hands pulp back an HTML page. "302 Found" is to be used when "the target resource exists but has been moved" - https://datatracker.ietf.org/doc/html/rfc7231#section-6.4.3 Asking for a nonexistent resource must NEVER be "found". "404" "indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists" - https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.4 There isn't much Pulp can do when the remoter server lies about what it's handing back. |