S/MIME upload certificate failed

Hello Community,

I have a problem to upload a comodo-certificate to kopano-webapp. When I try to upload the certificate nothing happens and in the log-files i see following message:

Failed to open store with entryid , referer: https://xxxxxxxx/webapp/
[Sun Jun 03 12:24:25.817218 2018] [:error] [pid 21121] [client 192.168.111.146:39614] MAPIException: MAPI error  in /usr/share/kopano-webapp/server/includes/core/class.mapisession.php:543\nStack trace:\n#0 /usr/share/kopano-webapp/server/includes/core/class.mapisession.php(543): mapi_openmsgstore(Resource id #1, '')\n#1 /usr/share/kopano-webapp/server/includes/upload_attachment.php(81): MAPISession->openMessageStore(false)\n#2 /usr/share/kopano-webapp/server/includes/upload_attachment.php(478): UploadAttachment->init(Array)\n#3 /usr/share/kopano-webapp/server/includes/load.php(39): include('/usr/share/kopa...')\n#4 /usr/share/kopano-webapp/index.php(217): include('/usr/share/kopa...')\n#5 {main}, referer: https://xxxxxxxx/webapp/

Any ideas where the fault can be? Thanks for your suggestions.
My system-config:
WebApp: 3.4.15.1513+65.1
Kopano Core: 8.5.9
Z-Push: 2.3.8+0-0
Univention 4.3-0 errata89

regards Ari

Hi Ari,

Thanks for the report.
I’ve created ticket: https://jira.kopano.io/browse/KW-2625

Hi marty,

thank you. I hope there will be a solution soon.

greetings Ari

@marty
Hi marty,

as I can see there´s a solution now but when will the 3.4.16 Version become stable? It would be important because of the GDPR.

regards Ari

We are working towards a release. If you can’t wait for the fix you should give the master build a try on a test server and if it’s stable enough you can use that.

Ok, thank you for your suggestion. I will try that.

Hi marty,

thank you, the upload works perfect! But now I have the problem that I can not open the attachements from the encrypted mail. The log-file says the following message:

[Wed Jun 13 13:29:17.457819 2018] [:error] [pid 15755] [client 10.0.178.210:48628] PHP Fatal error:  Uncaught Error: Call to a member function getRecipientProperties() on null in /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php:1137\nStack trace:\n#0 /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php(302): Pluginsmime->removeDuplicateRecipients(Resource id #13)\n#1 /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php(82): Pluginsmime->onEncrypted(Array)\n#2 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(550): Pluginsmime->execute('server.util.par...', Array)\n#3 /usr/share/kopano-webapp/server/includes/util.php(497): PluginManager->triggerHook('server.util.par...', Array)\n#4 /usr/share/kopano-webapp/server/includes/download_attachment.php(187): parse_smime(Resource id #6, Resource id #13)\n#5 /usr/share/kopano-webapp/server/includes/download_attachment.php(844): DownloadAttachment->init(Array)\n#6 /usr/share/kopano-webapp/server/includes/load.php(44): include('/usr/share/kopa...')\n#7 /usr/share/kopano-webapp/index.php(217): include('/usr/share/kopa...')\n#8 {main}\n   in /usr/share/kopano-webapp/plugins/smime/php/plugin.smime.php on line 1137, referer: https://10.1.178.101/webapp

Which version of the s/mime plugin is this?

@marty

kopano-webapp-plugin-smime 2.1.1.77-9.1

That’s an old version, latest final is 2.2.0.

@marty
Thank you, marty! That was the solution. It was an old version.

greetings
Ari