[Freeipa-devel] [freeipa PR#747][opened] vault: piped input for ipa vault-add fails
flo-renaud
freeipa-github-notification at redhat.com
Thu Apr 27 17:26:26 UTC 2017
URL: https://github.com/freeipa/freeipa/pull/747
Author: flo-renaud
Title: #747: vault: piped input for ipa vault-add fails
Action: opened
PR body:
"""
An exception is raised when using echo "Secret123\n" | ipa vault-add myvault
This happens because the code is using (string).decode(sys.stdin.encoding)
and sys.stdin.encoding is None when the input is read from a pipe.
The fix is using the prompt_password method defined by Backend.textui,
which gracefully handles this issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1445358
"""
To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/747/head:pr747
git checkout pr747
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pr-747.patch
Type: text/x-diff
Size: 3276 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20170427/2c7e9d60/attachment.bin>
More information about the Freeipa-devel
mailing list