Page MenuHome GnuPG

Kleopatra: Improve notepad result messages for corrupted OpenPGP data
Open, LowPublic

Description

Split from T7341

Decryption of corrupted OpenPGP encrypted messages result in feedback "Keine Daten" (no data), which is misleading.

To reproduce:

  1. Open Notepad
  2. Enter some text
  3. Select some valid OpenPGP Sign/Encrypt Certs
  4. Click Sign / Encrypt Notepad Button
  5. Change one char of the encrypted text
  6. Click Decrypt / Verify Notepad
  7. Compare Keine Daten with result feedback in Diagnostics

Some diagnostic results depending on which char was edited:

"keine gültigen OpenPGP-Daten" (better than just "no data")
"Prüfsummenfehler"
"Falsch aufgebaute Prüfsumme"
"unknown version"

I'd prefer "Keine gültigen (OpenPGP-)Daten" for the first case (probably someone missed a dash to copy).
I'm not sure, if the technical reason should be displayed for the other cases, but at least it should be clear, that it's due to some technical reason (corrupted message, copy&paste error, etc).

Note: SMIME feedback is better, the technical reason is mostly displayed.

Details

Version
gpg4win-5.0.0-beta357 @ win10

Event Timeline

timegrid created this object with edit policy "Contributor (Project)".

We need a better error code from gpg to change this

werner added a subscriber: werner.

Nope: There are many different error codes returned, Kleopatra may want to map them to a common one.