Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add encoding for WebTargets parts (#2359)
### Motivation Fixes #2304 Issue #2304 reported that Pulsar admin commands will fail with some url style parts, ``` root@pulsar-admin:/pulsar# pulsar-admin namespaces grant-permission --actions produce,consume --role 'spiffe://developer/passport' core-platform/testing HTTP 404 Not Found Reason: HTTP 404 Not Found ``` This PR try to fix it. ### Modifications - use URLEncoder to encode webTarget parts. - add tests to verify ### Result all UT passed
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters