Project

General

Profile

Actions

Bug #25878

closed

New lines in text attributes break the hammer output

Added by Ondřej Pražák about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Organizations and locations
Target version:
-
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

When there are new lines in the text attributes, it affect how hammer displays individual rows. As a result, the following commands cannot be used to retrieve ids.

hammer organization list | grep vE '\-|ID' | awk '{ print $1 }'
hammer --csv organization list | grep -vi '^id' | awk -F, '{ print $1 }'

Because there is a newline character in the "Description" field on the "Edit <Organization Name>" page available at Administer > Organizations > Primary, the text on the new line will show up in the "ID" field of the commands above.

Reproducible: Always

Steps to Reproduce:
1. Create an Organization with additional information on a new line in the Description field.
2. Login to the CLI of the Foreman server as an admin user.
3. Run the commands included in this bug report.

Additionally, there are two "Description" fields in the output of "hammer organization list".

Actions #1

Updated by Martin Bacovsky about 5 years ago

  • Subject changed from New lines in text attributes break the hammer output to New lines in text attributes break the hammer output
  • Triaged changed from No to Yes
Actions #2

Updated by Oleh Fedorenko almost 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Oleh Fedorenko
Actions #3

Updated by The Foreman Bot almost 5 years ago

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

Updated by The Foreman Bot almost 5 years ago

  • Pull request https://github.com/theforeman/hammer-cli-foreman/pull/415 added
Actions #5

Updated by Martin Bacovsky over 4 years ago

  • Team Backlog Hammer added
Actions #6

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases hammer-cli-0.19.0 added
Actions #7

Updated by Oleh Fedorenko over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF