[ https://jira.nuxeo.com/browse/NXP-8584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=109183#comment-109183 ]
Florent Guillaume commented on NXP-8584: ---------------------------------------- When a client requests the creation of a cmis:document (without a more specific type), we now use the MimetypeRegistry to find a MIME type from the file extension, then use the FileManager service to create the document using the appropriate import plugin. In this manner a *.txt will create a Note, images will be created as Pictures, etc. > Allow CMIS clients to create images as Picture objects > ------------------------------------------------------ > > Key: NXP-8584 > URL: https://jira.nuxeo.com/browse/NXP-8584 > Project: Nuxeo Enterprise Platform > Issue Type: Improvement > Components: CMIS > Affects Versions: 5.5 > Reporter: Florent Guillaume > Assignee: Florent Guillaume > Fix For: 5.6 > > > Some AtomPub CMIS clients (Adobe Drive for instance) create an image with the > following sequence: > - create doc in checked out state with atom:title="foo.jpg" and CMIS type > "cmis:document" (POST in children collection) > - set the blob object on it (PUT on content) > - check in (PUT on entry with checkin=true parameter) > The problem is that this creates a File document, instead of a Picture. > It would be better to use Picture instead of File if we detect that it's > going to be an image. The only information we have to decide that is the > atom:title. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets