Skip to content

Ensure filename extension check is normalized#11261

Merged
kmcgrady merged 3 commits intodevelopfrom
fix/enforce-extension-case-sensitivity
May 5, 2025
Merged

Ensure filename extension check is normalized#11261
kmcgrady merged 3 commits intodevelopfrom
fix/enforce-extension-case-sensitivity

Conversation

@kmcgrady
Copy link
Copy Markdown
Collaborator

@kmcgrady kmcgrady commented May 3, 2025

Describe your changes

We have a bug where the filename has an uppercase extension that did not pass the file extension enforcement and caused issues. This ensures we are checking the lowercase filename.

GitHub Issue Link (if applicable)

closes #11259

Testing Plan

  • Python unit tests updated

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@kmcgrady kmcgrady added security-assessment-completed change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels May 3, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 3, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-11261/streamlit-1.45.0-py3-none-any.whl
🕹️ Preview app pr-11261.streamlit.app (☁️ Deploy here if not accessible)

@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented May 3, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@kmcgrady kmcgrady merged commit 26f1b8f into develop May 5, 2025
37 checks passed
@kmcgrady kmcgrady deleted the fix/enforce-extension-case-sensitivity branch May 5, 2025 17:39
sfc-gh-mbarnes pushed a commit that referenced this pull request May 12, 2025
## Describe your changes

We have a bug where the filename has an uppercase extension that did not
pass the file extension enforcement and caused issues. This ensures we
are checking the lowercase filename.

## GitHub Issue Link (if applicable)
closes #11259

## Testing Plan

- Python unit tests updated

---

**Contribution License Agreement**

By submitting this pull request you agree that all contributions to this
project are made under the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with st.file_uploader for txt files on the latest version of streamlit (1.45.00)

2 participants