Skip to content

fix(rest): properly handle string-encoded well-known types in URLs#1282

Merged
vchudnov-g merged 4 commits intogoogleapis:mainfrom
vchudnov-g:field-mask-query-param
Mar 27, 2023
Merged

fix(rest): properly handle string-encoded well-known types in URLs#1282
vchudnov-g merged 4 commits intogoogleapis:mainfrom
vchudnov-g:field-mask-query-param

Conversation

@vchudnov-g
Copy link
Contributor

Well-known type messages that JSON-encode to strings appear in URL paths and query params unquoted. When we extract them from these places, we need to quote them to make them valid JSON that we can pass to the JSON deserializer. We weren't doing the quoting previously.

Fixes #1263

@vchudnov-g vchudnov-g requested review from a team and noahdietz March 24, 2023 20:15
@vchudnov-g vchudnov-g force-pushed the field-mask-query-param branch from af3dea8 to f1c0bee Compare March 24, 2023 20:16
Copy link
Contributor

@noahdietz noahdietz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, but otherwise, makes sense. Thank you

@noahdietz
Copy link
Contributor

@noahdietz
Copy link
Contributor

We probably need to test if it is already "quoted" before quoting it again via %q

@noahdietz
Copy link
Contributor

#1294 should do it

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.

HttpJson UpdateUserRequest's FieldMask is unable to be Unmarshalled

2 participants