Skip to content

[Backport release-1.18] fix: add DaprInvokeHttpClient.encodePath for URI path encoding#1776

Merged
javier-aliaga merged 1 commit into
release-1.18from
backport-1774-to-release-1.18
Jun 30, 2026
Merged

[Backport release-1.18] fix: add DaprInvokeHttpClient.encodePath for URI path encoding#1776
javier-aliaga merged 1 commit into
release-1.18from
backport-1774-to-release-1.18

Conversation

@dapr-bot

Copy link
Copy Markdown
Collaborator

Backport f42e0d2 from #1774.

newRequestBuilder resolves relativePath raw and now rethrows
IllegalArgumentException on illegal chars (e.g. spaces), pointing at
encodePath. encodePath percent-encodes each path segment, preserving
separators and a leading slash and appending any query unchanged,
mirroring DaprHttp/invokeMethod.

Signed-off-by: Javier Aliaga <javier@diagrid.io>
(cherry picked from commit f42e0d2)
@dapr-bot dapr-bot requested review from a team as code owners June 30, 2026 14:56
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.86%. Comparing base (c97c39b) to head (9bebee7).

Files with missing lines Patch % Lines
sdk/src/main/java/io/dapr/utils/UriUtils.java 86.95% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##             release-1.18    #1776      +/-   ##
==================================================
+ Coverage           76.83%   76.86%   +0.02%     
- Complexity           2297     2306       +9     
==================================================
  Files                 243      244       +1     
  Lines                7141     7163      +22     
  Branches              745      753       +8     
==================================================
+ Hits                 5487     5506      +19     
- Misses               1288     1289       +1     
- Partials              366      368       +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@javier-aliaga javier-aliaga merged commit 13dfc59 into release-1.18 Jun 30, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants