Hello list, Just to let you know that I finally fixed :
http://jira.nuxeo.org/browse/NXP-1085 Integrate MimeType detection in a Core Event Listener and the related issue: NXP-2324 Icon of documents created with LiveEdit in both branches (5.1 and 5.2) so that duplicated (or sometimes missing ...) code for handling the mimetype detection of a newly uploaded blob (be it either from the document create / edit views, the 'import file' button, the desktop drag and drop restlets or the live edit restlet) has been factorized into a single easily overridable class with many decoupled public static methods registered as a Core event listener configured to update any newly created or modified document. The class is org.nuxeo.ecm.platform.filemanager.core.listener.MimetypeIconUpdater and is responsible for introspecting the dirty blob properties of a document model to add missing mimetype subproperties and then update the common:/icon field based on the detected mimetype of the file:/content main blob. It also performs BBB update such as handling changes the soon to be deprecated in file:/filename field. Here is the detail of the factorization: http://hg.nuxeo.org/nuxeo/nuxeo-platform/rev/4d0595933847 -- Olivier _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
