Skip to content

fix(sigv4): Convert empty query parameters to null#6082

Merged
tyllark merged 3 commits intomainfrom
fix/sigv4-empty-query-parameters
Mar 27, 2025
Merged

fix(sigv4): Convert empty query parameters to null#6082
tyllark merged 3 commits intomainfrom
fix/sigv4-empty-query-parameters

Conversation

@tyllark
Copy link
Copy Markdown
Member

@tyllark tyllark commented Mar 19, 2025

Issue #, if available:
#6008

Description of changes:
Web builds send an OPTions request to verify CORS compatibility with the URL and a 404 can be returned if the URL contains unexpected query Parameters. URI.toString() appends a "?" to the URL for an empty query parameter map and we are currently setting null a query parameter to an empty map.

This fix converts empty query parameters to null if it empty to prevent the URL from unintentionally having a "?" appended.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tyllark tyllark requested a review from a team as a code owner March 19, 2025 20:36
@tyllark tyllark merged commit c2d948a into main Mar 27, 2025
359 checks passed
@tyllark tyllark deleted the fix/sigv4-empty-query-parameters branch January 15, 2026 00:22
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