Help needed to fix FilterActionEncryptTest::shouldEncrypt(PGP*) unit tests

Ingo Klöcker kloecker at kde.org
Mon Aug 16 22:21:29 BST 2021


On Montag, 16. August 2021 20:06:31 CEST Friedrich W. H. Kossebau wrote:
> Hi,
> 
> when trying to fix the last remaining failing unit test in mailcommon I ran
> into unknown territory with PGP/QGpgME-related errors.
> I would first need to learn about PGP (again), and ideally instead someone
> who is already expert could tackle this? Could you? :)
> 
> The test fails on an QGpgME::EncryptJob returning an error with the error
> string being
>     "Unusable public key".
> I assume it used to work at one point in time, and perhaps the data in the
> test environment no longer matches requirements? Perhaps even simply an EOL
> key?

Without having looked at this I'm making a wild guess that it's caused by 
current gpg refusing signatures made with SHA1. This happened for some tests 
in gpgme. To fix this one needs to add "allow-weak-key-signatures" to the 
gpg.conf of the test environment resp. add a gpg.conf with this option to 
src/filter/autotests/gpghome.

Again, that's just a wild guess. I may be completely wrong. Maybe we will have 
to have a closer look at it.

Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20210816/2ad5222e/attachment.sig>


More information about the kde-pim mailing list