#6885 ipa cert-show does not raise error if no file name specified
Closed: fixed 7 years ago Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1441499

Description of problem:
When user does not specify file name in `--certificate-out`, command does not
raise error "Filename is empty"

[root@vm-idm-010 ~]# ipa cert-show 1 --certificate-out=
  Issuing CA: ipa
  Certificate: <snipped>/eoZcrUgTVtUk7qapoBfFf/iUE=
  Subject: CN=Certificate Authority,O=TESTRELM.TEST
  Issuer: CN=Certificate Authority,O=TESTRELM.TEST
  Not Before: Wed Apr 12 05:05:02 2017 UTC
  Not After: Sun Apr 12 05:05:02 2037 UTC
  Serial number: 1
  Serial number (hex): 0x1
  Revoked: False

Version-Release number of selected component (if applicable):
ipa-server-4.5.0-5.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. ipa cert-show 1 --certificate-out=

Actual results:
Certificate is shown at stdout

Expected results:
Command should complain as "Filename is empty"

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1441499

7 years ago

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1441499

7 years ago

Metadata Update from @pvoborni:
- Issue priority set to: critical
- Issue tagged with: bug

7 years ago

Metadata Update from @akasurde:
- Issue assigned to akasurde

7 years ago

Metadata Update from @akasurde:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/725

7 years ago

Metadata Update from @akasurde:
- Assignee reset

7 years ago

Metadata Update from @stlaz:
- Issue assigned to stlaz

7 years ago

Metadata Update from @stlaz:
- Issue assigned to stlaz

7 years ago

Metadata Update from @pvoborni:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/771 (was: https://github.com/freeipa/freeipa/pull/725)

7 years ago

Metadata Update from @mbasti:
- Issue set to the milestone: FreeIPA 4.5.2 (was: FreeIPA 4.5.1)

7 years ago

FreeIPA 4.5.1 has been released, moving to FreeIPA 4.5.2 milestone

master:

  • 1ed1717 ca/cert-show: check certificate_out in options

ipa-4-5:

  • 9ce5d6b ca/cert-show: check certificate_out in options

Metadata Update from @jcholast:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

7 years ago

Log in to comment on this ticket.

Metadata