chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Webster <tim.webs...@gmail.com>
Subject MIME types preventing addition of content
Date Fri, 29 Aug 2014 16:09:06 GMT
Hi,

I'm deriving the mime type of documents (using Apache Tika) and then adding
them to my CMIS repository using a Chemistry Java client.  For some reason,
certain mime types seem to prevent the content from being added.

The document gets added, but the mime type and content are empty.

The biggest offender seems to be application/msword, and there seem to be
others.

I've used the same code for the past couple of years to do this, and the
only thing I've changed is the value of the mime type in the ContentStream.
Previously, I used to just set everything to 'application/octet-stream'.
 If I switch back to that, it works fine.  The Tika libraries are doing
their job just fine, and returning the correct mime type.

If I add the same document through the workbench, the document gets added,
and the mime type and content are totally fine.

I've attached a screenshot of my CMIS workbench so you can see the effect.

Anyone have any ideas?

[image: Inline image 1]

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message