Bug 2187295

Summary: [RFE] Pulp download of package fails silently if a proxy uses "data trickling" and later fails
Product: Red Hat Satellite Reporter: Stefan Meyer <smeyer>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.12.3CC: dalley, dkliban, ggainey, rchan
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Stefan Meyer 2023-04-17 11:56:26 UTC
Description of problem:
Pulp download of package fails silently if a proxy uses "data trickling" and later fails

Version-Release number of selected component (if applicable):
- Satellite 6.12
- python39-pulpcore-3.18.16-1.el8pc.noarch

How reproducible:
- A web proxy (example: McAfee Web Gateway) uses "data trickling" to keep a session open for Pulp
  and downloads the package to scan it for viruses. 
- If everything is ok, the proxy then lets the whole file through.
- If the package is however blocked on the web proxy the proxy prints an error messages to the end 
  of the file and then closes the connection
- If that happens pulp only reports the error message "Response payload is not completed" without
  showing exactly which package failed to download

Actual results:
- Error message "Response payload is not completed" without further information which package failed to download

Expected results:
- Pulp should show the full URL of the failed package and the complete error message provided by the upstream proxy

Additional info: