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
Unknown Object (File)
Thu, Jan 23, 8:26 AM
Unknown Object (File)
Tue, Jan 21, 10:07 AM
Unknown Object (File)
Sat, Jan 18, 2:32 AM
Unknown Object (File)
Fri, Jan 17, 8:42 PM
Unknown Object (File)
Dec 23 2024, 12:31 PM
Unknown Object (File)
Dec 22 2024, 10:35 AM
Unknown Object (File)
Dec 15 2024, 10:41 PM
Unknown Object (File)
Dec 15 2024, 6:19 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
Branch
grant1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25246
Build 34844: Run Core Tests
Build 34843: arc lint + arc unit

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.