Page MenuHomePhabricator

Respect user/pass flags to bin/storage for direct DatabaseRef-based queries
ClosedPublic

Authored by epriestley on Nov 19 2016, 4:38 PM.
Tags
None
Referenced Files
F13060353: D16901.diff
Fri, Apr 19, 5:43 PM
F13054970: D16901.diff
Fri, Apr 19, 12:21 PM
Unknown Object (File)
Fri, Apr 12, 6:35 AM
Unknown Object (File)
Fri, Apr 12, 6:35 AM
Unknown Object (File)
Fri, Apr 12, 6:30 AM
Unknown Object (File)
Fri, Apr 12, 6:07 AM
Unknown Object (File)
Wed, Apr 10, 1:17 PM
Unknown Object (File)
Sun, Apr 7, 10:52 AM
Subscribers
None

Details

Summary

Ref T11893. Previously, we excuted all bin/storage queries through StorageManagementAPI objects.

After D16848, we execute some queries through PhabricatorDatabaseRef. However, the refs we use weren't getting passed the -u / -p flags correctly, for specifying alternate administrative credentials.

Test Plan
  • Created a second account (trunk).
  • Ran bin/storage -u trunk.
  • Made libphutil throw when not connecting as that user.
  • Before patch: some connections incorrectly used the default user, "root".
  • After patch: all connections correctly used the configured user, "trunk".

Diff Detail

Repository
rP Phabricator
Branch
user1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14580
Build 19026: Run Core Tests
Build 19025: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Respect user/pass flags to bin/storage for direct DatbaseRef-based queries.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Nov 19 2016, 4:38 PM
epriestley retitled this revision from Respect user/pass flags to bin/storage for direct DatbaseRef-based queries to Respect user/pass flags to bin/storage for direct DatabaseRef-based queries.Nov 19 2016, 4:38 PM
epriestley edited edge metadata.
This revision was automatically updated to reflect the committed changes.