Skip to content

fix: Fix panic InvalidHeaderValue scanning from S3 on Windows #20820

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

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Jan 21, 2025

Fixes #20650

Issue is due to not handling the carriage return \r of the CRLF \r\n line terminator used in the configuration file.

This updates Rust-side code, however it is less-used after the Python-side CredentialProviderAWS was introduced.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jan 21, 2025
@nameexhaustion nameexhaustion force-pushed the aws-creds-panic-windows branch from 7aa1e1a to ebf5606 Compare January 21, 2025 12:09
AmazonS3ConfigKey::SecretAccessKey,
),
(
"aws_session_token\\s*=\\s*([^\\r\\n]*)",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drive-by load the session token if it exists

@nameexhaustion nameexhaustion marked this pull request as ready for review January 21, 2025 12:11
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.69%. Comparing base (b4b8f81) to head (ebf5606).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #20820   +/-   ##
=======================================
  Coverage   79.69%   79.69%           
=======================================
  Files        1568     1568           
  Lines      222969   222977    +8     
  Branches     2544     2544           
=======================================
+ Hits       177696   177703    +7     
- Misses      44689    44690    +1     
  Partials      584      584           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit 9e129cd into pola-rs:main Jan 21, 2025
32 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PanicException InvalidHeaderValue when reading a table from s3
2 participants