[SERVER-10517] shell memorizing db.auth command when there is spaces between "db." and "auth" Created: 14/Aug/13  Updated: 11/Jul/16  Resolved: 26/Nov/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.5.1
Fix Version/s: 2.5.5

Type: Bug Priority: Trivial - P5
Reporter: Xiuming Chen Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

run "db. auth(USERNAME, PASSWORD)"
press "up" arrow to show the command with password

Participants:

 Description   

The regex for commands to exclude from shell history (i.e. auth-related commands) does not match when there are extra spaces between db and the command.



 Comments   
Comment by Githook User [ 26/Nov/13 ]

Author:

{u'username': u'cxmcc', u'name': u'Xiuming Chen', u'email': u'cc@cxm.cc'}

Message: SERVER-10517: do not add command such as db\.auth() to shell history when there are spaces after 'dot'

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/fd1b086c8ba051da355157776c07733c4b7dc107

Comment by Xiuming Chen [ 14/Aug/13 ]

added pull request: https://github.com/mongodb/mongo/pull/473

Generated at Thu Feb 08 03:23:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.