Skip to content

GH-48853: [Release] Fix bytes to string comparison in download_rc_binaries.py#48913

Closed
shashbha14 wants to merge 1 commit intoapache:mainfrom
shashbha14:GH-48853-fix-bytes-string-comparison
Closed

GH-48853: [Release] Fix bytes to string comparison in download_rc_binaries.py#48913
shashbha14 wants to merge 1 commit intoapache:mainfrom
shashbha14:GH-48853-fix-bytes-string-comparison

Conversation

@shashbha14
Copy link
Copy Markdown

@shashbha14 shashbha14 commented Jan 20, 2026

Rationale for this change
The download_rc_binaries.py script fails with a TypeError when a download fails and it tries to check if the error is related to OpenSSL.

What changes are included in this PR?

subprocess.Popen().communicate() returns bytes objects, but the code was comparing stderr (bytes) with a string "OpenSSL". Changed to use bytes literal b"OpenSSL" for proper comparison.

Are these changes tested?

The fix is straightforward - using bytes literal instead of string literal for comparison with bytes object.

Are there any user-facing changes?

No.

Closes #48853

@github-actions github-actions bot added the awaiting review Awaiting review label Jan 20, 2026
@kou
Copy link
Copy Markdown
Member

kou commented Jan 21, 2026

Duplicate of #48896.

@kou kou closed this Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review Awaiting review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Release] download_rc_binaries.py fails validating sterr on download failure due to bytes to string comparison

2 participants