[SERVER-30673] get last error command should be marked doesn't requireAuth Created: 15/Aug/17  Updated: 30/Oct/23  Resolved: 16/Aug/17

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.5.12

Type: Bug Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 2017-08-21
Participants:
Linked BF Score: 0

 Description   

The get last error command can cause it to attempt to process session info, which may possibly dirty up the client object with a new error (from doing auth work).

Marking it ! requiresAuth will avoid that codepath



 Comments   
Comment by Githook User [ 16/Aug/17 ]

Author:

{'username': 'hanumantmk', 'email': 'jcarey@argv.me', 'name': 'Jason Carey'}

Message: SERVER-30673 !requiresAuth for gle command

The get last error command can cause it to attempt to process session
info, which may possibly dirty up the client object with a new error
(from doing auth work).

Marking it !requiresAuth will avoid that codepath.
Branch: master
https://github.com/mongodb/mongo/commit/8b5b8220fa00538df41cf4f1bedbf0e0aefd71cb

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