Repository navigation
Store only the value of a file in gcloud-node configstore file #693
Copy link
Copy link
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Activity
- addedtype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.
on Jun 26, 2015 - changed the title
[-]Store only the value of a file in temporary cache[/-][+]Store only the value of a file in gcloud-node configstore file[/+]on Jun 26, 2015 - added 2 commits that reference this issue
on Jan 10, 2023 - added a commit that references this issue
on Jul 23, 2025 3 remaining items
- added a commit that references this issue
on Feb 2, 2026 - added a commit that references this issue
on Feb 3, 2026 - added a commit that references this issue
on Feb 3, 2026 - added a commit that references this issue
on Feb 5, 2026 - added a commit that references this issue
on Feb 17, 2026 - added a commit that references this issue
on Feb 23, 2026 - added a commit that references this issue
on Feb 25, 2026 - added a commit that references this issue
on Feb 26, 2026 - added a commit that references this issue
on Mar 17, 2026 - added a commit that references this issue
on Mar 18, 2026
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I'm not sure if this was a change in Node >v0.10 or something that was always sneaking under the radar, but the story goes...
We use a config .yml file that enables resumable uploads to work without the user having to understand what's going on under the hood. (Documented here).
It looks like we're having a potentially huge leak here: https://github.com/GoogleCloudPlatform/gcloud-node/blob/61ffa82c78cce44ed28b94d8a857c7c051cae9d0/lib/storage/file.js#L1394
chunkis a Buffer. When you slice a buffer, it apparently keeps a property calledparent, that is the entire original value of the buffer. As a result, we were writing the entire thing into a user's gcloud-node config file, when all we wanted was a measly 16kb.Here's the fix:
PR coming before today's release.