tsgrp / HPI

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

Null Pointer Exception Occurs when Uploading from template with docm extension #2473

Open katiebrill opened 2 years ago

katiebrill commented 2 years ago

If you try to use bulk upload with a doc template that has a docm extension youll get a null pointer exception.

This is because our content mapping in oc-format-config.xml is incorrect. application/vnd.ms-word.document.macroEnabled.12 should be application/vnd.ms-word.document.macroenabled.12

The capital E is what is not allowing us to map the mimetype correctly. We should probably verify that the other mimetypes with macroenabled in the name are cased correctly.