A call to listCollections that does not define a batchSize will generally return all collections in a single batch. This call requires either the listCollections permission or the read permission on the system.namespaces collection. However, if you call listCollections with a batchSize of 0 and then try to call getmore on the cursor that is returned, the getmore call does not take the system.namespaces permission into account. This results in cases where a user can call the listCollections action successfully but can not call getmore on the returned cursor. Some drivers, such as the Java driver, specifically send a batchSize of 0 when making this call, which can cause this problem to manifest itself.
- Votes:
-
0 Vote for this issue
- Watchers:
-
9 Start watching this issue
- Created:
- Updated:
- Resolved: