Exception while Processing Inline Image with incorrect file name extension

Exception while Processing Inline Image with incorrect file name extension

Reference : #7938623#8561970

Cause :  
      Inline Images could not be processed with incorrect file name, for example "4d54308871ec465c8233d0f470db0308.do?sys_id=4fdfcb17475c1d50c594c133846d436a" . While constructing the filename in our end, the values after the ' ' along with the query string is appended to filename, as extension. 

      Due to Security Configurations, inline images could not be loaded other than {"png","jpg","jpeg","gif","bmp"}.  Also currently we are not restricting filenames with invalid extensions. 

Fix :
     Currently in this fix, while validating filename, if filename has valid extension, then extension is parsed from filename. If the content type has valid extension, then that extension is appended to filename. other inline images are prevented.

JAR Compatibility : 13002

                    New to ADSelfService Plus?

                      • Related Articles

                      • 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 ...
                      • 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 ...
                      • Mail Fetching: Inline Images Dropping Due to Invalid Extension

                        Issue: The inline image's file name from the email doesn't contain the extension. Example: filename = sys_attachment.dosys_id=5bb0751c8303b5dc96a238226daad371 As a result, the inline image gets stripped during the mail fetching process. The sender of ...
                      • 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: ...
                      • Mail Fetching : Inline Image URL Replace error.

                        Issue: Mail fetching is stopping due to inline image Handling. The problem with replacing inline image URLs is the underlying cause of the issue. The issue will occur during addition of conversation not in new request creation. ErrorTrace: ...