#5155 Vault - traceback after passing nonexistent password file
Closed: Fixed None Opened 3 years ago by alich.

VERSION: 4.2.90.201507201402GIT37b1af9, API_VERSION: 2.146

$ ipa vault-add SymmetricVault123 --desc="Symmetric vault" --type=symmetric --password-file=mypassword
ipa: ERROR: non-public: IOError: [Errno 2] No such file or directory: u'mypassword'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 129, in execute
    result = self.Command[_name](*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 443, in __call__
    ret = self.run(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 1109, in run
    return self.forward(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/plugins/vault.py", line 594, in forward
    with open(password_file, 'rb') as f:
IOError: [Errno 2] No such file or directory: u'mypassword'
ipa: ERROR: an internal error has occurred

I have posted [PATCH 021] Validate vault's file parameters. It addresses this bug as well as a couple of similar issues in the vault plugin.

ipa-4-2:

  • 2d7565e Validate vault's file parameters

master:

  • 8e28ddd Validate vault's file parameters

Metadata Update from @alich:
- Issue assigned to cheimes
- Issue set to the milestone: FreeIPA 4.2.1

2 years ago

Login to comment on this ticket.

Metadata