tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

AlfrescoEmbUtil createEnhancedObjectProperty doesn't account for all data types #48

Open cmlewis opened 9 years ago

cmlewis commented 9 years ago

In a current client project, the following warning shows up probably a hundred times per page load and creating unnecessarily large logs:

2014-11-12 11:27:23,714  WARN  [alfresco.util.AlfrescoEmbUtil] Defaulting prop type to 'string' for prop: sys:locale
2014-11-12 11:27:23,714  WARN  [alfresco.util.AlfrescoEmbUtil] Defaulting prop type to 'string' for prop: sys:node-dbid

In AlfrescoEmbUtil.createEnhancedObjectProperty, if a type doesn't match one of our OC constants, we default to string type and log the warning.

sys:locale is a 'locale' type - suggestion is to default to string. sys:node-dbid is a 'long' type - why don't we have long in OCConstants?