[SERVER-35698] usersInfo output capped at 101 users Created: 19/Jun/18  Updated: 29/Oct/23  Resolved: 20/Jun/18

Status: Closed
Project: Core Server
Component/s: Security, Usability
Affects Version/s: 4.0.0-rc6
Fix Version/s: 4.0.0-rc7, 4.1.1

Type: Bug Priority: Major - P3
Reporter: Spencer Jackson Assignee: Spencer Jackson
Resolution: Fixed Votes: 0
Labels: SWNA
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Platforms 2018-07-02
Participants:
Linked BF Score: 15

 Description   

In order to transform internal user documents to a format that may be consumed by end users, the usersInfo command invokes the aggregation framework. If more than 101 documents, the default batch size, would be returned to the client, then the output may become truncated. No error is returned in the response to indicate that not all documents were returned.



 Comments   
Comment by Githook User [ 20/Jun/18 ]

Author:

{'username': 'spencerjackson', 'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com'}

Message: SERVER-35698 Uncap usersInfo output past 101 results

(cherry picked from commit 4132ecabfdc1de9b1fcc2df3188c089ad9c22e27)
Branch: v4.0
https://github.com/mongodb/mongo/commit/7230641bb09b1ceb04c3135cf83a5044c4838906

Comment by Githook User [ 20/Jun/18 ]

Author:

{'username': 'spencerjackson', 'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com'}

Message: SERVER-35698 Uncap usersInfo output past 101 results
Branch: master
https://github.com/mongodb/mongo/commit/4132ecabfdc1de9b1fcc2df3188c089ad9c22e27

Comment by Timothy Olsen (Inactive) [ 20/Jun/18 ]

We currently only use usersInfo to detect if a user exists.  For example, we will call {usersInfo: {user: "tim", db: "mongodb"}}.  We do not currently call usersInfo to get a list of all users.

Generated at Thu Feb 08 04:40:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.