You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(worker): three correctness fixes found in review
- Validate drinkId before getReviewSummary to prevent an injection
path through the resource-name segments (INVALID_RESOURCE_NAME 400)
- Reject unknown updateMask fields rather than silently ignoring them
(UNKNOWN_FIELD_MASK 400), matching AIP-134 contract guarantees
- Eliminate post-write readRow() in upsert: compute finalStarRating /
finalRecommend before writing and build the response from those values,
removing one DB round trip and closing a TOCTOU race where a concurrent
DELETE between write and re-read caused a non-null assertion crash
Test: adds UNKNOWN_FIELD_MASK case; all 86 tests pass
https://claude.ai/code/session_01VVTCRjdHqcTJCVEjEVQV6C
0 commit comments