Skip to content

Report a custom query in URIBuilder#isQueryEmpty - #1536

Merged
ok2c merged 1 commit into
apache:masterfrom
sharanggupta:uri-builder-custom-query-not-empty
Nov 25, 2026
Merged

ok2c merged 1 commit into
apache:masterfrom
sharanggupta:uri-builder-custom-query-not-empty

Conversation

@sharanggupta

Copy link
Copy Markdown
Contributor

URIBuilder#isQueryEmpty checks the query parameters and the encoded query but not a query set with setCustomQuery, so it returns true for a builder that builds http://localhost/?this&that. It now takes the custom query into account; TestURIBuilder#testCustomQueryIsNotEmpty fails without the change.

isQueryEmpty() ignored a query set with setCustomQuery, so it returned
true for a builder that builds a URI with a query.
@ok2c
ok2c merged commit e42ed68 into apache:master Nov 25, 2026
12 checks passed
@ok2c ok2c added this to the 5.5.1 milestone Nov 28, 2026
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