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 6 years ago. Updated almost 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 #1

Updated by Tomáš Strachota over 6 years ago

  • Description updated (diff)
Actions #2

Updated by Tomáš Strachota over 6 years ago

  • Bugzilla link set to 1481184
Actions #3

Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/323 added
Actions #4

Updated by Marek Hulán over 6 years ago

  • Target version changed from 1.18.0-RC2 to 214
Actions #5

Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF