tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

Bulk Upload for emails with Sterilize Filenames ON in Alfresco does not allow for email upload with sterilized names #2444

Closed katiebrill closed 2 years ago

katiebrill commented 2 years ago

Sanitize names is turned to ON.

Attempting to upload an email with attachments and a '#' in the filename of the document being uploaded.

The UI appears to just spin.

image

The issue comes from the uploadMSGFileForParsing function in BulkUpload.js. The logic shows:

image

We loop through all Files looking for a match to our filename BUT the filename has been sanitized at this point while the File has not. Therefore this loop does not find a match and we get a null pointer excpetion when we try to manipulate the email on the next line.

Confirmed that turning off sterilize filenames does get us past this point in the process - though obviously we are then unable to actually perform the upload.

katiebrill commented 2 years ago

ACA Commit #26545

CR: nengerer, skovacinski, dhartman