Sharing a document works again, as someone who can read it

FixDocsService
Shipped
September 11, 2026 at 4:40 AM UTC
Author
Kamo
Commit
720b11b

The share dialog sends a document id as a string — an img id is an int64 past 2^53, which a JSON number would round — and createShare cast it to Number. Every share failed with a ClassCastException, which the dialog could only report as "1 of 1 share(s) failed"; img_shares was empty across the platform. The id is now read as a number or a digit string, and a malformed id or member id is a 400 rather than a 500. The document is resolved as the sharer, the way every other read resolves it: same organization, clearance, VIEW_DOCUMENTS. Looked up by id alone, anyone in the organization could put any document's name into a colleague's Shared With Me. Trashed documents, the per-party collections and a colleague's issued package are refused, as their bytes already are. Share is now offered on every row of the Docs manager, not only in My Docs, which is what made this path matter.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing