{"action":"created","issue":{"url":"https://api.github.com/repos/StackExchange/blackbox/issues/104","labels_url":"https://api.github.com/repos/StackExchange/blackbox/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/StackExchange/blackbox/issues/104/comments","events_url":"https://api.github.com/repos/StackExchange/blackbox/issues/104/events","html_url":"https://github.com/StackExchange/blackbox/issues/104","id":94339399,"number":104,"title":"blackbox_register_new_file stopped working after eab0418f","user":{"login":"harrisonpage","id":755359,"avatar_url":"https://avatars.githubusercontent.com/u/755359?v=3","gravatar_id":"","url":"https://api.github.com/users/harrisonpage","html_url":"https://github.com/harrisonpage","followers_url":"https://api.github.com/users/harrisonpage/followers","following_url":"https://api.github.com/users/harrisonpage/following{/other_user}","gists_url":"https://api.github.com/users/harrisonpage/gists{/gist_id}","starred_url":"https://api.github.com/users/harrisonpage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrisonpage/subscriptions","organizations_url":"https://api.github.com/users/harrisonpage/orgs","repos_url":"https://api.github.com/users/harrisonpage/repos","events_url":"https://api.github.com/users/harrisonpage/events{/privacy}","received_events_url":"https://api.github.com/users/harrisonpage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T16:20:11Z","updated_at":"2015-07-11T22:59:36Z","closed_at":null,"body":"Still trying to wrap my head around this problem. \r\n\r\nAfter doing a git pull, running blackbox_register_new_file shows this error:\r\n\r\n```% echo nevermind > whatever.txt```\r\n```% blackbox_register_new_file whatever.txt```\r\n```gpg: whatever.txt: encryption failed: No public key```\r\n\r\nI double-checked that all public keys had subkeys which were not expired. \r\n\r\nWhen I step back from the latest release to eab0418f the command works.\r\n\r\nAdding \"set -x\" to the top of blackbox_register_new_file reveals this output:\r\n\r\n```+ gpg --use-agent --yes --trust-model=always --encrypt -o whatever.txt.gpg '-rRECIPIENT1\r\n-rRECIPIENT2\r\n-rRECIPIENT3' whatever.txt\r\ngpg: RECIPIENT1\r\n-rRECIPIENT2\r\n-rRECIPIENT3: skipped: No public key\r\ngpg: whatever.txt: encryption failed: No public key```\r\n\r\nIn release eab0418f and before, output looks like this:\r\n\r\n```+ gpg --yes --trust-model=always --encrypt -o whatever.txt.gpg -rRECIPIENT1  -rRECIPIENT2 -rRECIPIENT3 whatever.txt```\r\n\r\nAll the recipients are on the same line. \r\n\r\nWhat baffles me is that the code in _blackbox_common.sh is the same between the two versions:\r\n\r\n```gpg --yes --trust-model=always --encrypt -o \"$encrypted\" $(awk '{ print \"-r\" $1 }' < \"$BB_ADMINS\") \"$unencrypted\"```\r\n\r\nAnybody else seeing this error? "},"comment":{"url":"https://api.github.com/repos/StackExchange/blackbox/issues/comments/120667572","html_url":"https://github.com/StackExchange/blackbox/issues/104#issuecomment-120667572","issue_url":"https://api.github.com/repos/StackExchange/blackbox/issues/104","id":120667572,"user":{"login":"selfcommit","id":1029030,"avatar_url":"https://avatars.githubusercontent.com/u/1029030?v=3","gravatar_id":"","url":"https://api.github.com/users/selfcommit","html_url":"https://github.com/selfcommit","followers_url":"https://api.github.com/users/selfcommit/followers","following_url":"https://api.github.com/users/selfcommit/following{/other_user}","gists_url":"https://api.github.com/users/selfcommit/gists{/gist_id}","starred_url":"https://api.github.com/users/selfcommit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selfcommit/subscriptions","organizations_url":"https://api.github.com/users/selfcommit/orgs","repos_url":"https://api.github.com/users/selfcommit/repos","events_url":"https://api.github.com/users/selfcommit/events{/privacy}","received_events_url":"https://api.github.com/users/selfcommit/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T22:59:36Z","updated_at":"2015-07-11T22:59:36Z","body":"Didn't mean to close this without confirming.  Please try the most recent build to see if this is resolved for you."}}