Project

General

Profile

Actions

Bug #20575

closed

Hammer prints wrong error when there's unauthorized request at the beginning of a sessions

Added by Tomáš Strachota over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

When a user is logged out, tries to start a new sessions and enters wrong credentials, hammer prints an error message as if there was an existing session.

Reproducer steps:
  1. Enable sessions in the config file for hammer
  2. hammer auth logout
  3. hammer -u admin -p wrong_pwd host list

Actual result:
Hammer prints:

Invalid username or password, continuing with session for ''

Expected result:

Invalid username or password

Actions

Also available in: Atom PDF