[SERVER-22729] userCreateNS should call userAllowedCreateNS Created: 18/Feb/16 Updated: 05/Apr/17 Resolved: 28/Nov/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | 3.0.9, 3.2.3, 3.3.1 |
| Fix Version/s: | 3.5.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jonathan Abrahams | Assignee: | Daniel Gottlieb (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Sprint: | Storage 2016-12-12 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 0 | ||||||||||||
| Comments |
| Comment by Githook User [ 28/Nov/16 ] |
|
Author: {u'username': u'dgottlieb', u'name': u'Daniel Gottlieb', u'email': u'daniel.gottlieb@10gen.com'}Message: A `copydb` command from the `local` database to a user one can create collections |
| Comment by Eric Milkie [ 14/Nov/16 ] |
|
We should also consider renaming these functions, because they still stand as outliers in the catalog API, with confusing semantics that are easy to get wrong – this ticket is a case in point. |
| Comment by Eric Milkie [ 14/Nov/16 ] |
|
This crash is happening because userCreateNS() does not call userAllowedCreateNS(), even though it logs oplog entries that cause secondaries to eventually call createCollection() which does call userAllowedCreateNS(). |