Page MenuHomePhabricator

Provide more help around GRANT errors, particularly for missing TEMPORARY TABLE permission
ClosedPublic

Authored by epriestley on Mar 11 2021, 10:32 PM.
Tags
None
Referenced Files
F19000067: D21608.id.diff
Thu, Nov 20, 10:39 PM
F18868160: D21608.diff
Nov 4 2025, 4:56 AM
F18855253: D21608.id51440.diff
Nov 1 2025, 4:35 AM
F18806973: D21608.diff
Oct 18 2025, 10:17 PM
F18744072: D21608.id51439.diff
Oct 3 2025, 1:48 AM
F18625810: D21608.id.diff
Sep 15 2025, 11:37 PM
F18623035: D21608.diff
Sep 15 2025, 2:00 PM
F18606414: D21608.diff
Sep 13 2025, 10:17 PM
Subscribers
Restricted Owners Package

Details

Summary

Fixes T13622. Figuring out what permissions we have seems difficult, so address this a bit more narrowly:

  • Make the "access denied" error message a bit more helpful.
  • Tailor error handling for the "CREATE TEMPORARY TABLE" statement.
Test Plan
  • Created a new user, granted them "SELECT ON *.*" but not "CREATE TEMPORARY TABLE", ran bin/storage upgrade --force --apply phabricator:20210215.changeset.02.phid-populate.php.
  • Before: fairly opaque error.
  • After: fairly useful error.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Mar 11 2021, 10:32 PM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 11 2021, 10:55 PM
This revision was automatically updated to reflect the committed changes.