[SERVER-8265] Shell - show logs needs better error message when unauthorized. Created: 22/Jan/13  Updated: 11/Jul/16  Resolved: 12/Mar/13

Status: Closed
Project: Core Server
Component/s: Security, Shell, Usability
Affects Version/s: 2.3.2
Fix Version/s: 2.5.0

Type: Bug Priority: Minor - P4
Reporter: Craig Wilson Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: Linux
Steps To Reproduce:

Type show logs into the console.

Participants:

 Description   

When running mongodb subscriber edition 2.3.2 for ubuntu 11, "show logs" results in "cannot read property length of undefined".

src/mongo/shell/utils.js:1576



 Comments   
Comment by auto [ 12/Mar/13 ]

Author:

{u'date': u'2013-03-12T17:19:31Z', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@10gen.com'}

Message: Better err message when "show logs" is unauthorized SERVER-8265

Signed-off-by: Ian Whalen <ian.whalen@gmail.com>
Branch: master
https://github.com/mongodb/mongo/commit/29bc5063bd232aa1664511d4486936d1f13e60b6

Comment by Craig Wilson [ 22/Jan/13 ]

Got it. I wasn't authorized to see those. I guess the thing to do would be to clean up the error message...

Comment by Scott Hernandez (Inactive) [ 22/Jan/13 ]

Can you run the getLog command directly and post the results from that shell?

db.adminCommand({getLog:"global"})

I would guess the command is failing for some reason.

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