Hello, I'm trying to install z-push and the Zimbra Backend on an OpenBSD 7.3 server with PHP 8.2. It works fine on iPhone, but on Android (I'm testing with the Nine mail app), attachments cannot be downloaded. Clicking on them, the z-push log returns this error: 'Fatal error: /z-push/backend/zimbra/zimbraHttpStreamWrapper.php:111 - Uncaught TypeError: fread(): Argument #1 ($stream) must be of type resource, bool given in /z-push/backend/zimbra/zimbraHttpStreamWrapper.php:111'.
As I mentioned, there is no problem on iPhone, and the attachment is downloaded correctly.
Thank you!
The issue is not in the Backend but rather in the suggested fix for streamer.php -
Please see corrected fix for Z-Push 2.6.4 in ticket - https://sourceforge.net/p/zimbrabackend/support-requests/185/#934b
The call to convert to a stream should not have been applied to the BASE64 data type.
The reason you do not see a problem with iPhone is that they handle the emails entirely differently. iDevices download the complete MIME message and parse out the attachments themselves. Other devices download the HTML/Test of the email, and a list of the attachements, and then fetch the attachments as needed.
Note: I also replied to your post on the Z-Push github
Thank you for your reply. As it's not a bug on the Backend itself, I'm continuing on the Z-Push github
Closing ticket.