#5211 ipa vault-add creates vault with invalid type
Closed: Fixed None Opened 8 years ago by spoore.

Cloned from: https://bugzilla.redhat.com/show_bug.cgi?id=1253443

Description of problem:

[root@master ~]# ipa vault-add vname --type=type_dne
ipa: ERROR: invalid 'vault_type': Invalid vault type

[root@master ~]# ipa vault-find

1 vault matched

Vault name: vname
Type: type_dne


Number of entries returned 1

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

How reproducible:
always

Steps to Reproduce:
1. ipa-server-install
2. ipa-kra-install
3. kinit admin
4. ipa vault-add vname --type=type_dne

Actual results:
error message displayed but, adds vault even though the type is invalid

Expected results:
does not add vault

Additional info:


imho vault type should be StrEnum which would fix this issue

master:

  • 6941f4e vault: validate vault type

ipa-4-2:

  • c34b288 vault: validate vault type

Metadata Update from @spoore:
- Issue assigned to pvoborni
- Issue set to the milestone: FreeIPA 4.2.1

6 years ago

Login to comment on this ticket.

Metadata