[Nearby] Base64 encode certificate IDs in query parameters
The ListPublicCertificates HTTP GET request has the option of including the IDs of certificates that the user already has. These certificates will not be returned by the server. The certificate ID is a byte field in the proto, and One Platform requires that byte fields be base64 encoded before being added to the URL's query parameters (https://developers.google.com/protocol-buffers/docs/proto3#json). Otherwise we get "Bad Request" errors in the HTTP response body like "Invalid value at 'secret_ids' (TYPE_BYTES), Base64 decoding failed for...". Fixed: 1128021 Change-Id: Icef3d04456de40a7207aba0ed64eda8f1438c675 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2410578 Auto-Submit: Josh Nohle <nohle@chromium.org> Commit-Queue: James Vecore <vecore@google.com> Reviewed-by:James Vecore <vecore@google.com> Cr-Commit-Position: refs/heads/master@{#806919}
Showing
Please register or sign in to comment