Share Encryption Files is broken

Hello
I have an issue with shared encripted files. When I try to open a file shared with me and with encryption enable on the server I can’t read it. If I check the log I get the error

/remote.php/dav/files/User%20Users/Literature%20%26%20Multimedia/Products%20Handbook/Product%20Handbook%20EN%20R250_web.pdf","message":"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0","version":"30.0.5.1","exception":{"Exception":"OC\\Encryption\\Exceptions\\DecryptionFailedException","Message":"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you."

If I try to read the same file as owner I got the error

"File":"/var/www/nextcloud/apps/encryption/lib/Crypto/Crypt.php","Line":613,"Hint":"multikeydecrypt with share key failed:error:02000079:rsa routines::oaep decoding error"},"message":"Encryption not ready: multikeydecrypt with share key failed:error:02000079:rsa routines::oaep decoding error","exception":{},"CustomMessage":"Encryption not ready: multikeydecrypt with share key failed:error:02000079:rsa routines::oaep decoding error"}}

There is a way to solve it ?

1 Like