Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pubsub: assure topic names are properly used in API requests #1008

Merged
merged 1 commit into from
Dec 8, 2015

Conversation

stephenplusplus
Copy link
Contributor

Fixes #1005
Fixes #1006

Thanks to @chrishiestand for catching this bug.

We weren't considering that topic names come from two places:

  1. API (full format: projects/{id}/topics/{id})
  2. User (short format: {id})

In either case, the Topic constructor comes up with their correct names in each format. But what it wasn't doing was passing the correct version (short format) to ServiceObject, which meant in some cases, the full format was being injected into a request URL where the short format was required.

@stephenplusplus stephenplusplus added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: pubsub Issues related to the Pub/Sub API. labels Dec 8, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 8, 2015
callmehiphop added a commit that referenced this pull request Dec 8, 2015
pubsub: assure topic names are properly used in API requests
@callmehiphop callmehiphop merged commit 5549066 into googleapis:master Dec 8, 2015
sofisl pushed a commit that referenced this pull request Nov 11, 2022
Fixes #1008
Source-Link: googleapis/synthtool@b0535a7
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:bbb8dd6576ac58830a07fc17e9511ae898be44f2219d3344449b125df9854441

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Nov 11, 2022
Fixes #1008
Source-Link: googleapis/synthtool@b0535a7
Post-Processor: gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:bbb8dd6576ac58830a07fc17e9511ae898be44f2219d3344449b125df9854441

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: kelsk <38271546+kelsk@users.noreply.github.com>
sofisl pushed a commit that referenced this pull request Jan 26, 2023
Fixes #1008
Source-Link: googleapis/synthtool@b0535a7
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:bbb8dd6576ac58830a07fc17e9511ae898be44f2219d3344449b125df9854441

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants