Project

General

Profile

Bug #11178

error strings with % in them break messages

Added by Thomas McKay over 3 years ago. Updated 5 months ago.

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

Description

Stack trace and error string below.

/home/thomasmckay/.rvm/gems/ruby-1.9.3-p547@hammer/gems/fast_gettext-0.9.2/lib/fast_gettext/vendor/string.rb:70:in `%': malformed format string - %' (ArgumentError)
    from /home/thomasmckay/.rvm/gems/ruby-1.9.3-p547@hammer/gems/fast_gettext-0.9.2/lib/fast_gettext/vendor/string.rb:70:in `%'
    from /home/thomasmckay/code/hammer-cli/lib/hammer_cli/utils.rb:12:in `format'
    from /home/thomasmckay/code/hammer-cli/lib/hammer_cli/output/adapter/abstract.rb:27:in `print_error'
    from /home/thomasmckay/code/hammer-cli/lib/hammer_cli/output/output.rb:16:in `print_error'
    from /home/thomasmckay/code/hammer-cli/lib/hammer_cli/exception_handler.rb:45:in `print_error'

The error string being processed was

"Error: Operating system '<%#' not found
       Kickstart default,1,"Default Organization,Alpha Bit Soup",Default Location,Redhat,"<%#
kind: ptable
name: Kickstart default
oses:
- CentOS 5
- CentOS 6
- CentOS 7
- Fedora 16
- Fedora 17
- Fedora 18
- Fedora 19
- Fedora 20
- RedHat 5
- RedHat 6
- RedHat 7
%>
zerombr
clearpart --all --initlabel
autopart

",
" 


Related issues

Related to Hammer CLI - Tracker #14914: Tracker for output related issuesNew2016-05-03

Associated revisions

Revision 2786b6ce (diff)
Added by Kavita Gaikwad over 1 year ago

Fixes #11178 - error strings with % in them break messages

History

#1 Updated by Tomáš Strachota over 2 years ago

#2 Updated by Kavita Gaikwad over 1 year ago

  • Assignee set to Kavita Gaikwad

#3 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/hammer-cli/pull/245 added

#4 Updated by Kavita Gaikwad over 1 year ago

  • Target version set to 1.15.6

#5 Updated by Kavita Gaikwad over 1 year ago

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

#6 Updated by Tomáš Strachota over 1 year ago

  • Legacy Backlogs Release (now unused) set to 242

Also available in: Atom PDF