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

fix: replaceProjectId should not fail when passed a Buffer #43

Merged
merged 1 commit into from
Oct 30, 2018

Conversation

jkwlui
Copy link
Member

@jkwlui jkwlui commented Oct 30, 2018

Fixes GCS OOM issue: googleapis/nodejs-storage#489

This bug was introduced when we converted from using is.object(..) to typeof .. === 'object'. While typeof buffer === 'object', is.object(buffer) === false.

We should also probably back-patch v2.0 and v2.1 of the GCS library to fix this bug.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 30, 2018
@jkwlui jkwlui self-assigned this Oct 30, 2018
@JustinBeckwith
Copy link
Contributor

Oooooops. Welp that's good to know, and a little scary. I don't think we need to backport, because a semver patch release will float downstream.

@jkwlui jkwlui merged commit b189964 into master Oct 30, 2018
@jmdobry jmdobry deleted the fix-replace-buffer branch December 5, 2018 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants