Actions
Issue #7691
closedCan't sync http repository without http directory listing when no treeinfo present
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
Sprint:
Sprint 84
Quarter:
Description
When syncing http[s] repository without treeinfo and the repository does not allow directory listing, pulp tries to fetch treeinfo and fails not because 404 not found (what is handled well) but
"description": "403, message='Forbidden', url=URL('http://amazonlinux.us-east-1.amazonaws.com/2/core/2.0/x86_64/a3ab6bd64043e16700a1be13947a8d2155362e6d4e61908a43440ffc45becdce/.treeinfo')"
Actions
treeinfo download fix
When .treeinfo file is missing, server returns HTTP 403 instead of HTTP 404 if the autoindex is disabled on the server.
closes: #7691 https://pulp.plan.io/issues/7691
[nocoverage] [notest]