Authentication Bypass in MailboxImportServlet vulnerability (reminder)
https://blog.zimbra.com/2022/08/authentication-bypass-in-mailboximportservlet-vulnerability/

Z-push php8.1 problem

Take your Zimbra with you!
Kordian
Posts: 32
Joined: Wed Oct 24, 2018 5:04 pm

Z-push php8.1 problem

Postby Kordian » Tue Sep 06, 2022 12:23 pm

Hello,
When switching to php8.1 from 7.4, my z-push returns an error:
06/09/2022 11:43:04 [379496] [FATAL] Fatal error: /z-push/lib/wbxml/wbxmlencoder.php:174 - Uncaught TypeError: stream_filter_append(): Argument #1 ($stream) must be of type resource, string given in /z-push/lib/wbxml/wbxmlencoder.php:174
Could someone help?
Any php package missing?
Thank you in advance!


milauria
Advanced member
Advanced member
Posts: 93
Joined: Mon Aug 15, 2016 12:32 pm

Re: Z-push php8.1 problem

Postby milauria » Wed Sep 07, 2022 1:48 am

Sorry for the silly question: did you forced the update to php8.1 or did it come from the yum repos ?
Just asking because I am also running z-push on a Centos7 server separate from the zimbra server and regularly update with yum update but never had this issue
Thanks
Kordian
Posts: 32
Joined: Wed Oct 24, 2018 5:04 pm

Re: Z-push php8.1 problem

Postby Kordian » Wed Sep 07, 2022 6:18 am

I do not think there are silly questions... :-)
The update was done separately, I have debian where actually numerous versions of php are allowed (can enable or disable the desired one), so I have both 7.4 and 8.1.
Everything is working fine under 7.4 enabled.
Under 8.1 the error comes up. Here once again the full error:

06/09/2022 11:43:04 [379496] [FATAL] [] Fatal error: /z-push/lib/wbxml/wbxmlencoder.php:174 - Uncaught TypeError: stream_filter_append(): Argument #1 ($stream) must be of type resource, string given in /z-push/lib/wbxml/wbxmlencoder.php:174
Stack trace:
#0 /z-push/lib/wbxml/wbxmlencoder.php(174): stream_filter_append()
#1 /z-push/lib/core/streamer.php(327): WBXMLEncoder->contentStream()
#2 /z-push/lib/core/streamer.php(252): Streamer->Encode()
#3 /z-push/lib/core/streamimporter.php(171): Streamer->Encode()
#4 /z-push/lib/default/diffbackend/exportchangesdiff.php(166): ImportChangesStream->ImportMessageChange()
#5 /z-push/lib/request/sync.php(1199): ExportChangesDiff->Synchronize()
#6 /z-push/lib/request/sync.php(956): Sync->syncFolder()
#7 /z-push/lib/request/requestprocessor.php(116): Sync->Handle()
#8 /z-push/index.php(107): RequestProcessor::HandleRequest()
#9 {main}
thrown (1)
Last edited by Kordian on Mon Sep 12, 2022 12:43 pm, edited 1 time in total.
milauria
Advanced member
Advanced member
Posts: 93
Joined: Mon Aug 15, 2016 12:32 pm

Re: Z-push php8.1 problem

Postby milauria » Wed Sep 07, 2022 7:52 am

If not directly related to Zimbra might be worth posting this question in the Kopano forum: https://forum.kopano.io/category/25/synchronising-mobile-devices-via-z-push
phoenix
Ambassador
Ambassador
Posts: 27085
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Z-push php8.1 problem

Postby phoenix » Wed Sep 07, 2022 9:03 am

Kordian wrote:I do not think there are silly questions... :-)
The update was done separately, I have debian where actually numerous versions of php are allowed (can enable or disable the desired one), so I have both 7.4 and 8.1.
Everything is working fine under 7.4 enabled.
Is there any specific reason you update the php version? This problem is not a Zimbra problem and as has been mentioned you'd more likely to get an answer on the Kopano forums.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Kordian
Posts: 32
Joined: Wed Oct 24, 2018 5:04 pm

Re: Z-push php8.1 problem

Postby Kordian » Wed Sep 07, 2022 9:15 am

Well, I am trying on the kopano forum as well.
The reason is simply 7.4 will not be supported anymore. So I need to upgrade the server anyway.
phoenix
Ambassador
Ambassador
Posts: 27085
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Z-push php8.1 problem

Postby phoenix » Wed Sep 07, 2022 10:19 am

Kordian wrote:Well, I am trying on the kopano forum as well.
These are not support forums for z-push, you should always post questions about z-push on the Kopano forums.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Kordian
Posts: 32
Joined: Wed Oct 24, 2018 5:04 pm

Re: Z-push php8.1 problem

Postby Kordian » Wed Sep 07, 2022 10:22 am

From the experience I know people here also help on z-push issues.
phoenix
Ambassador
Ambassador
Posts: 27085
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Z-push php8.1 problem

Postby phoenix » Wed Sep 07, 2022 10:39 am

Kordian wrote:From the experience I know people here also help on z-push issues.
As I've already mentioned, these are Zimbra and while you may get other z-push users helping you here I'd suggest you'll find a better experience getting support from the Kopano forums.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Kordian
Posts: 32
Joined: Wed Oct 24, 2018 5:04 pm

Re: Z-push php8.1 problem

Postby Kordian » Wed Sep 07, 2022 10:42 am

Can we concentate on my problem, please?
But thanks for the idea with kopano, as mentioned is already contacted as well.

Return to “Mobility”

Who is online

Users browsing this forum: No registered users and 4 guests