Blank mail body after updating from 8.8.15 p29 to p30

Ask questions about your setup or get help installing ZCS server (ZD section below).
slacker1337
Posts: 36
Joined: Fri Aug 30, 2019 8:54 am

Re: Blank mail body after updating from 8.8.15 p29 to p30

Post by slacker1337 »

Hello guys,

is there something new about this issue or has it been fixed in the meantime? I came across this today (Zimbra 8.8.15_P32) and turning off the OWASP HTML sanitizer has helped, but as Mark mentioned it's not the intended solution.

Code: Select all

2022-08-09 10:35:24,365 WARN  [qtp2011482127-55178:https://mail.domain.com/service/soap/GetMsgRequest] [name=mail@domain.com;mid=996;oip=x.x.x.x;port=34268;ua=ZimbraWebClient - GC104 (Win)/8.8.15_GA_4303;soapId=67b5972d;] soap - Exception during HTML sanitization: java.lang.AssertionError: Invalid CDATA text content : <!--
Kind regards,
Lubomir
boulton
Posts: 1
Joined: Tue Aug 09, 2022 7:48 am

Re: Blank mail body after updating from 8.8.15 p29 to p30

Post by boulton »

I wish I knew what was meant by "turning off the OWASP HTML sanitizer" . . . but I don't!

I have had this "blank mail body" problem from two different senders.

I had the idea of printing the blank page, to then take a picture, and send the picture to the sender, so they could understand what I was trying to describe to them.

What surprised me was that the print-preview included, the text the sender intended, when he/they sent me their e-Mail.

I am a ludite, still using a paper-based filing system, so I was content just print the e-Mail (and its contents) from the print-preview.

I have also got into the habit of copying e-Mail contents, and posting them into a WORD document (which I then copy & paste if I want to include the sender's contents, in my reply), as trying to use the REPLY function, just presents me with a page of "code".

Not sure if this work-around might be useful to others.
zmGodctl_start
Posts: 7
Joined: Thu Jul 21, 2022 6:54 am

Re: Blank mail body after updating from 8.8.15 p29 to p30

Post by zmGodctl_start »

Hi all,

This morning we hit this bug just after upgrading from P33 to P34.
In mailbox log:
Exception during HTML sanitization: java.lang.NoSuchMethodError: 'java.lang.String org.owasp.html.HtmlLexer.canonicalElementName(java.lang.String)'

As a workaround disabled sanitizer

~$ zmlocalconfig -e zimbra_use_owasp_html_sanitizer=false
~$ zmmailboxdctl restart

Looking for a better solution. Anyone :?:
ibanfq
Posts: 1
Joined: Thu Jul 20, 2023 8:04 am

Re: Blank mail body after updating from 8.8.15 p29 to p30

Post by ibanfq »

Hi guys,

Similar issue. In my case, the cause of the problem was a duplicate java package:

Code: Select all

# find /opt/zimbra/jetty_base/common/lib/ -name "owasp-java-html-sanitizer*"
owasp-java-html-sanitizer-20190610.3z.jar
owasp-java-html-sanitizer-20190610.5z.jar
I fixed it deleting the file owasp-java-html-sanitizer-20190610.3z.jar and restarting the server with "zmmailboxdctl restart".

I hope this will help you'll too.
Post Reply