ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Issue with MAIL ACTION PACK using special characters at attachment

book

Article ID: 238697

calendar_today

Updated On:

Products

CA Automic One Automation

Issue/Introduction

The action pack PCK.AUTOMIC_EMAIL.PUB.ACTION.GET_MAIL can return unexpected results when it recovers emails with attachments.
In some case when the attachment has German characters like ü, ä or ö attachments are not correctly received.
This can in some special situation lead to the aborting of the action in other cases the name can only be altered, in other cases the attachment is not delivered.

In some cases ia signature attachment smime.7ps file is recovered instead of the expected attachment.

This ticket is about the MAIL ACTION PACK not the RA Mail Agent.

Customer is trying to gather a attachment from the e-mail for me it looks like there is an issue with special characters in the filename:
Customer was using an outlook mail server.

     --- body content end
     --- body end
        - attachment special ISO (original): =?utf-8?B?MjExNjFfSmHMiGdlcm1laXN0ZXJfV2VpaG5hY2h0c2JveF9CcmllZl9FaW5s?= =?utf-8?Q?eger.pdf?=
        - attachment identified ISO: utf-8
        - attachment quoted filename: =?utf-8?B?MjExNjFfSmHMiGdlcm1laXN0ZXJfV2VpaG5hY2h0c2JveF9CcmllZl9FaW5s eger.pdf
        - attachment decoded filename: 21161_Ja?germeister_Weihnachtsbox_Brief_Einlz????
        - save attachment: e:\uc4_spiegel\work\0074447916\1639402765533_7\21161_Ja?germeister_Weihnachtsbox_Brief_Einlz????


=================================================
Exception FileNotFoundException occured
Message: e:\uc4_spiegel\work\0074447916\1639402765533_7\21161_Ja?germeister_Weihnachtsbox_Brief_Einlz???? (Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch)
Detailed Information:

email-tool: ERROR: e:\uc4_spiegel\work\0074447916\1639402765533_7\21161_Ja?germeister_Weihnachtsbox_Brief_Einlz???? (Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch)
java.io.FileNotFoundException: e:\uc4_spiegel\work\0074447916\1639402765533_7\21161_Ja?germeister_Weihnachtsbox_Brief_Einlz???? (Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch)
    at java.io.FileOutputStream.open0(Native Method)
    at java.io.FileOutputStream.open(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at com.uc4.ara.feature.mail.MailItem.saveFile(MailItem.java:90)
    at com.uc4.ara.feature.mail.MailProcessItem.processNewMail(MailProcessItem.java:172)
    at com.uc4.ara.feature.mail.MailParseFolder.downloadUnreadItemsFromFolder(MailParseFolder.java:52)
    at com.uc4.ara.feature.mail.Receive.run(Receive.java:54)
    at com.uc4.ara.feature.AraFileCmd.main(AraFileCmd.java:125)
could not save attachment / save content object: e:\uc4_spiegel\work\0074447916\1639402765533_7\21161_Ja?germeister_Weihnachtsbox_Brief_Einlz???? 

 

 

 

Cause

This is a bug in the handling of file attachments.

 

Environment

PCK.AUTOMIC_EMAIL 1.2.0
AE/AWI 12.3

Resolution

This is a bug in the Action PACK, update to the following version 

It is corrected in PCK.AUTOMIC_EMAIL 1.2.1