Stripping html Attachments During Mail Fetching

Stripping html Attachments During Mail Fetching

            In some of the cases like Office 365 HTML attachments get stripped when fetching this mail in our ServiceDeskplus. 

Cause : 
  1. Some of the html documents has ".html" extension, but the content type of the html document will be of xhtml document. Say for example, A mail consist of attachment with fileName "message.html" , when looking up on its content type, "application/xhtml+xml". This may happen in number of cases, such as In microsoft mailbox,  when sending an email which is the effective link back to the encrypted Email.
  2. since allowedContentTypePatters has only have patterns for html extension and not for xhtml extension, INVALID_CONTENT_TYPE error is thrown.
Workaround :
  1. The attached fjar, will match the xhtml content type too, inaddition to the htmlcontentTypePattern.

Jar Compatibility : 
  1. 14201 : 1_14201_xhtml_att_stripped.fjar
  2. 14303 : 1_14303_strip_xhtml.fjar

Steps To Apply FJAR :
  1. Download the attached fjar, corresponding to your build Number. 
  2. Place the downloaded fjar in the <servicedeskplus_home>\fixes directory.
  3. Restart the Servicedeskplus Application.
Check whether the issue occurs in your environment and get back to us

                    New to ADSelfService Plus?

                      • Related Articles

                      • Mail Fetching - Error while processing attachment and inline image.

                        Issue During the process of fetching emails, attachments are dropped as a result of the presence of directory traversal characters. Furthermore, an issue arises when processing inline images, this particular error related to inline images results in ...
                      • Troubleshooting Oauth configuration for mail server settings

                        Oauth in ServiceDesk Plus / AssetExplorer for Mail SDP supports Oauth configuration for Office365 and GSuite mailboxes since 11106 build. Office365 mailboxes can be configured with Oauth authentication using EWS (since 11106) and IMAP / SMTP (since ...
                      • Fix JAR for Parse Error Exception Raised during Mail Fetching

                        Issue : Some mail are fetched and created as ticket without description due to message corruption temporarily. The issue is can be identified with the below trace. Fix : The issue is not recreated when the mail is skipped to next schedule and fetched ...
                      • Mail Fetching Stopped Due to Inline Image Handling

                        Issue Cause : While fetching a mail, in certain mail servers, cid of inline image is not parsed correctly. Once inline stream is converted to image, cid in src attr will be replaced with image url. cid for uploaded inline image in mail content is not ...
                      • Fix: Mail fetching stops due to invalid characters in the attachment name

                        Issue: Mail fetching being stopped due to invalid characters "?" , ":" in the filename. In this case, the eml file's subject contains ":" character and so, while uploading the .eml as attachment, error is thrown (Only in windows server) Trace: ...