Alfresco Share - Upload New Version change mimetype to Unknown/Octet-Stream when DWG file has different filename than current version.
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,
You will see the upload preview has changed the mimetype/file extension from DWG to unknown/octet-stream.
The same behavior observed if you renamed the original ABC.dwg -> ABC.DWG (with all caps file extension)
the DWG file mimetype should not be change to Unknown/Octet-Stream when the file name of the new version upload is different.
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.
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.
One needs to make sure the DWG filename is exactly identical to the current filename before uploading it as a new version.
One needs to change the mimetype back to DWG manually.