[SERVER-34634] db.currentOp( { "$ownOps": true } ) should work on mongos too Created: 24/Apr/18  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: 3.2.12
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Kay Agahd Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-5261 Include authentication information in... Closed
Assigned Teams:
Query Execution
Participants:
Case:

 Description   

According to the documentation users can run

db.currentOp( { "$ownOps": true } )

on mongod to view their own operations even without the inprog privilege action.

In order to be consistent, this command should also work for sharded systems and not only for single mongod's. However, it fails when executed on mongos:

mongos> db.currentOp( { "$ownOps": true } )
{
	"ok" : 0,
	"errmsg" : "not authorized on admin to execute command { currentOp: 1.0, $ownOps: true }",
	"code" : 13
}
mongos>


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