Issue 298 in redis: redis-cli "Error setting DB num" when authentication (-a) specified

3 views
Skip to first unread message

re...@googlecode.com

unread,
Aug 4, 2010, 1:32:04 PM8/4/10
to redi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 298 by rocklob: redis-cli "Error setting DB num" when
authentication (-a) specified
http://code.google.com/p/redis/issues/detail?id=298

What steps will reproduce the problem?

1. Configure redis with these options:
requirepass password
databases 16
2. Start redis-server
3. Attempt to use redis-cli while specifying a database number other than
0. Example:
redis-cli -n 1 -a password info

What is the expected output? What do you see instead?

Output of info command should be shown. Instead, you will see:
Error setting DB num
Error setting DB num

What version of the product are you using? On what operating system?

Redis 1.2.6 on 64-bit RedHat EL 5.

Please provide any additional information below.

In redis-cli.c, cliSendCommand() tries to call selectDb before it
issues the AUTH command.


re...@googlecode.com

unread,
Aug 30, 2010, 9:33:11 AM8/30/10
to redi...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 298 by antirez: redis-cli "Error setting DB num" when

(No comment was entered for this change.)

re...@googlecode.com

unread,
Aug 30, 2010, 9:37:34 AM8/30/10
to redi...@googlegroups.com
Updates:
Status: Verified

Comment #2 on issue 298 by antirez: redis-cli "Error setting DB num" when

Just fixed in Redis-master.

Cheers,
Salvatore

Reply all
Reply to author
Forward
0 new messages