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

[PR #6026/5801bf97 backport][3.63] [SAT-22998] Ensure Pulp closes the connection on corrupted streamed content #6081

Conversation

pedro-psb
Copy link
Member

Assuming we want to keep our stream-redirect approach on the content-app, We cant recover from wrong data already sent if the Remote happens to be corrupted (contains wrong binaries).

In order to not give a 200 reponse to client, we decided to close the connection as soon as the request handler realizes the checksum is wrong.

That only happens after we already sent the whole blob minus EOF, so we close the connection before sending the EOF.

Additionally, we put some message on the logs for admins to see and have a chance to manually fix the remote/remote_artifacts.

Co-authored-by: Matthias Dellweg [email protected]

fixes #5012

(cherry picked from commit 5801bf9)

Assuming we want to keep our stream-redirect approach on the
content-app, We cant recover from wrong data already sent if
the Remote happens to be corrupted (contains wrong binaries).

In order to not give a 200 reponse to client, we decided to
close the connection as soon as the request handler realizes
the checksum is wrong.

That only happens after we already sent the whole blob minus EOF,
so we close the connection before sending the EOF.

Additionally, we put some message on the logs for admins to see
and have a chance to manually fix the remote/remote_artifacts.

Co-authored-by: Matthias Dellweg <[email protected]>

fixes pulp#5012

(cherry picked from commit 5801bf9)
@pedro-psb pedro-psb force-pushed the patchback/backports/3.63/5801bf9766c67b68d2dcbce423b9421dd73ffdbd/pr-6026 branch from ab4d309 to bed95bb Compare November 26, 2024 18:58
@dralley dralley merged commit c699621 into pulp:3.63 Nov 26, 2024
12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants