Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

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

Merged
jkwlui merged 1 commit intomasterfrom
fix-replace-buffer
Oct 30, 2018
Merged

fix: replaceProjectId should not fail when passed a Buffer#43
jkwlui merged 1 commit intomasterfrom
fix-replace-buffer

Conversation

@jkwlui
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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