Project

General

Profile

Actions

Bug #21124

closed

Download option for scap-content in CLI shows error undefined method `[]' for nil:NilClass

Added by Ondřej Pražák about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

How reproducible:

Steps to Reproduce:
1. hammer scap-content list
---|------------------------------
ID | TITLE
---|------------------------------
14 | apple
2 | Red Hat jre default content
3 | Red Hat rhel6 default content
4 | Red Hat rhel7 default content
---|------------------------------
2. hammer scap-content --help
Usage:
hammer scap-content [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments

Subcommands:
create Create SCAP content
delete Deletes an SCAP content
download Show an SCAP content as XML
info Show an SCAP content
list List SCAP contents
update Update an SCAP content

Options:
-h, --help print help
3. hammer scap-content download --help
Usage:
hammer scap-content download [OPTIONS]

Options:
--id ID
--path PATH Path to directory where downloaded file will be saved
--title TITLE SCAP content title
-h, --help print help
4. hammer scap-content download --id=14 --path=/var
Could not download the SCAP content file:
Error: undefined method `[]' for nil:NilClass

Actual results:
Could not able to download scap-content.

Expected results:
Scap-content should be downloaded.

Additional info:
Happens only when scap content was uploaded without original_filename attribute.

Actions #1

Updated by The Foreman Bot about 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_openscap/pull/296 added
Actions #2

Updated by Marek Hulán about 7 years ago

  • Subject changed from Download option for scap-content in CLI shows error undefined method `[]' for nil:NilClass to Download option for scap-content in CLI shows error undefined method `[]' for nil:NilClass
  • Translation missing: en.field_release set to 313
Actions #3

Updated by Ondřej Pražák about 7 years ago

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

Also available in: Atom PDF