Alfresco Share - Upload New Version change mimetype to Unknown/Octet-Stream when DWG file has different filename than current version.

Description

Alfresco Share - Upload New Version change mimetype to Unknown/Octet-Stream when DWG file has different filename than the current version. Note: This is happening in Alfresco Share and only with DWG file mimetype.

Steps to reproduce,
1. Install ACS 6.1.1, upload any test .DWG file. E.g. ABC.dwg, version 1.0 created, and the mimetype is correctly detected and set to AutoCard Drawing (.DWG) under Node's Metadata Properties section.
2. Rename the ABC.dwg file to ABD-renamed.dwg, then click on Upload New Version and select ABD-renamed.dwg file to upload,

Actual behavior:
You will see the upload preview has changed the mimetype/file extension from DWG to unknown/octet-stream.
See screenshot1.

The same behavior observed if you renamed the original ABC.dwg -> ABC.DWG (with all caps file extension)
See screenshot2.

Expected behavior:
the DWG file mimetype should not be change to Unknown/Octet-Stream when the file name of the new version upload is different.

Note:
The issue does not occur if you upload ABC.dwg with the exact identical filename as a new version into Alfresco Share.
The issue also does not occur for any other mimetype except DWG
The issue does not occur for the DWG mimetype file when uploading a new version from the ADW/ADF application.

Workaround 1:
Use ADW, as it does not reproduced - see screenshot 3.

Note: Customer who reported this issue is however not allowed to use ADW per their business policy. Hence he requests to raise this as an Alfresco Share bug for a permanent bug fix.

Workaround 2:
One needs to make sure the DWG filename is exactly identical to the current filename before uploading it as a new version.

Workaround 3:
One needs to change the mimetype back to DWG manually.

Environment

None

Testcase ID

None

Assignee

Unassigned

Reporter

Seng Ei Liaw

Labels

None

Escalated By

None

Security Issue

None

ACT Numbers

00349710

Premier Customer

None

Code Branch

None

Build Location

None

Regression Since

None

Work Funnel End

None

Patch Attached

None

Dependent Version/s

None

Cloud or Enterprise

None

Prioritization Score

None

Delivery Team

None

Bug Priority

Category 3

Components

Fix versions

Affects versions