[SERVER-15460] shim needs access to the mongod implementation of AuthorizationManager for restore Created: 30/Sep/14  Updated: 10/Dec/14  Resolved: 01/Oct/14

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kyle Erf Assignee: Benety Goh
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

In order for the new mongorestore to work with --dbpath and user/role restoration, it needs access to the _mergeAuthzCollections command, which is not available in the default shim authorization manager.

See
https://github.com/mongodb/mongo/blob/master/src/mongo/tools/restore.cpp#L63
for the equivalent code in legacy mongorestore



 Comments   
Comment by Eric Milkie [ 01/Oct/14 ]

Spoke with Spencer and Kyle. We decided to move this logic into the tool itself, and forgo this enhancement in the shim. In the mongorestore logic, calling the _mergeAuthzCollections command is only necessary when restoring to a live database; when restoring directly to files via the shim, no special logic is necessary for handling a restore of a user data collection.

Generated at Thu Feb 08 03:38:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.