Repository navigation
fix(rest): replace %1s/%2s width specifiers with %s in REST URL formatting - #1368
Open
chjpooh2002 wants to merge 1 commit into
Open
chjpooh2002 wants to merge 1 commit into
chjpooh2002 wants to merge 1 commit into
Conversation
…tting Replace %1s and %2s width specifiers with %s in RestTransport and RestTransport_v0_3 so single-character push notification config IDs are not space-padded. This fixes a2aproject#1367
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replaces
%1sand%2swidth specifiers with%sinRestTransportandRestTransport_v0_3when formatting REST endpoint paths.In
java.util.Formatter,%2spads 1-character values with a leading space (e.g.,/tasks/task-1/pushNotificationConfigs/ 5), which causesURI.create(...)to throwIllegalArgumentException: Illegal character in path.Changes
%1s/%2swith%sinRestTransport(8 occurrences) andRestTransport_v0_3(3 occurrences).5) for both GET and DELETE inRestTransportTestandRestTransport_v0_3_Test.Verification
RestTransportTest: 31 tests passedRestTransport_v0_3_Test: 18 tests passedFollow the
CONTRIBUTINGGuide.Make your Pull Request title in the https://www.conventionalcommits.org/ specification.
Ensure the tests pass
Appropriate READMEs were updated (if necessary)
Fixes #1367