Page MenuHomePhabricator

"Upload tally" feature is broken. Fix or remove it.
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Be an election administrator.
  • Create an encrypted poll. Make sure you are an administrator.
  • Wait for it to open
  • Wait for it to close
  • Go to the tally page
  • For "Upload encrypted dump (optional)", add an encrypted XML dump file

image.png (1,414×199 px, 40 KB)

  • Press "Create tally"

What happens?:

image.png (1,890×538 px, 100 KB)

What should have happened instead?:

  • a tally appears with the results of the uploaded file, which is decrypted and tallied by this tally process

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

  • I think this is broken, per my testing just now and per Dom's comment in T403308#11162664
  • Let's decide if we want to fix this, or decide it's an unused feature and remove it to reduce maintenance burden
  • @dom_walden, any preference towards fixing vs removal? Was this a useful feature back in the day?
  • I think keeping it might have some security implications. The idea of an election administrator being able to upload whatever data they want and make it show up as a tally and trick scrutineers into certifying it could be problematic. If kept, may need to double check / rethink the security of this feature.
  • matrix of upload types and their errors:
    • encrypted XML - "Error tallying dump file: No decryption key is configured. Cannot decrypt." - this ticket
    • decrypted XML - "Error tallying dump file: Error interpreting vote record, cannot produce a tally." - it's good that trying to upload unencrypted dumps produces an error, but this is not a good error message. may want to improve this error message.
    • encrypted BLT - no such thing
    • decrypted BLT - "The dump file is corrupt and cannot be processed." (plus some uncaught PHP warnings) - it's good that trying to upload unencrypted dumps produces an error, but this is not a good error message. may want to improve this error message, and catch/fix/suppress the PHP warnings.

image.png (1,918×814 px, 168 KB)