Last modified: 2014-11-20 17:10:57 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75626, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73626 - GPG not executing for SecurePoll election
GPG not executing for SecurePoll election
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SecurePoll (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-20 00:06 UTC by James Alexander
Modified: 2014-11-20 17:10 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Alexander 2014-11-20 00:06:23 UTC
Currently getting an error after voting for an encrypted SecurePoll election:

Welcome Jamesofur!

Failed to encrypt your vote record. Your vote has not been recorded!

Error executing GPG. Use $wgSecurePollShowErrorDetail=true; in LocalSettings.php to show more detail.

English Wikipedia Test Vote on enWiki/voteWii. I'm going to try flipping errorDetail on to troubleshoot and see if this is an issue on SecurePolls side or the server.
Comment 1 Gerrit Notification Bot 2014-11-20 00:08:44 UTC
Change 174603 had a related patch set uploaded by Jalexander:
Enable SecurePoll error detail for debugging

https://gerrit.wikimedia.org/r/174603
Comment 2 Gerrit Notification Bot 2014-11-20 00:11:15 UTC
Change 174603 merged by jenkins-bot:
Enable SecurePoll error detail for debugging

https://gerrit.wikimedia.org/r/174603
Comment 3 James Alexander 2014-11-20 00:14:35 UTC
Error executing GPG:

Command: 'gpg' --homedir '/tmp/securepoll-ec4c9077c8ce738c2669118ff9472e16308a6931' --trust-model always --batch --yes --encrypt --armor --compress-level 0 --recipient '6A2D12BB' --sign --local-user FBEC1C99 --output '/tmp/securepoll-ec4c9077c8ce738c2669118ff9472e16308a6931/output' '/tmp/securepoll-ec4c9077c8ce738c2669118ff9472e16308a6931/input' 2>&1 2>&1

Error:

gpg: can't query passphrase in batch mode
Comment 4 James Alexander 2014-11-20 00:16:45 UTC
I know the keys used did not have a password... (on purpose, I think because of this) so not sure why it's trying to query passphrase.
Comment 5 Brad Jorsch 2014-11-20 15:22:55 UTC
(In reply to James Alexander from comment #4)
> I know the keys used did not have a password... (on purpose, I think because
> of this) so not sure why it's trying to query passphrase.

The signing key you provided *does* have a passphrase set. Apparently whatever tool you used to generate the key doesn't set "no passphrase" when you enter a zero-length passphrase, but instead actually sets the zero-length passphrase as the passphrase.
Comment 6 James Alexander 2014-11-20 17:10:57 UTC
(In reply to Brad Jorsch from comment #5)
> (In reply to James Alexander from comment #4)
> > I know the keys used did not have a password... (on purpose, I think because
> > of this) so not sure why it's trying to query passphrase.
> 
> The signing key you provided *does* have a passphrase set. Apparently
> whatever tool you used to generate the key doesn't set "no passphrase" when
> you enter a zero-length passphrase, but instead actually sets the
> zero-length passphrase as the passphrase.

Great..... Will create it using cli then and retry.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links