What is the problem?
Tallying an election with an incorrect GPG key, the tally page shows the error:
Tally failed with error: <p>Error executing GPG: </p><p>Command: #Command: 'gpg' '--homedir' '/tmp/securepoll-f190c83603a50eda28efaef11ff7961293bcb576' '--trust-model' 'always' '--batch' '--yes' '--decrypt' '-o' '/tmp/securepoll-f190c83603a50eda28efaef11ff7961293bcb576/output' '/tmp/securepoll-f190c83603a50eda28efaef11ff7961293bcb576/input' </p><p>Error: </p> <pre>gpg: encrypted with 3072-bit RSA key, ID 2E9A37F36165E557, created 2021-01-29   "docker_encrypt" gpg: decryption failed: No secret key </pre>
In the database, the error message is recorded as:
<p>Error executing GPG: </p><p>Command: #Command: 'gpg' '--homedir' '/tmp/securepoll-f190c83603a50eda28efaef11ff7961293bcb576' '--trust-model' 'always' '--batch' '--yes' '--decrypt' '-o' '/tmp/securepoll-f190c83603a50eda28efaef11ff7961293bcb576/output' '/tmp/securepoll-f190c83603a50eda28efaef11ff7961293bcb576/input' </p><p>Error: </p> <pre>gpg: encrypted with 3072-bit RSA key, ID 2E9A37F36165E557, created 2021-01-29   "docker_encrypt" gpg: decryption failed: No secret key </pre>
I guess we need to make it so that ' displays as '.
I haven't tried any other errors, so I don't know if this is a problem specific to that error or more general.
This is on my local docker install which runs SQLite, if that makes a difference.
Steps to reproduce problem
- For a wiki with $wgSecurePollShowErrorDetail = true;
- Tally an encrypted election using the wrong GPG key
- Refresh the page to see the error
Environment
Wiki(s): local docker (sqlite) SecurePoll 2.0.0 (ed8bc5e) 06:37, 29 March 2021.
