cancel
Showing results for 
Search instead for 
Did you mean: 

A document has a cmis:contentStreamFileName value of null, I have never seen this, is it a bug?

nicolasraoul
Star Contributor
Star Contributor
Dear all,

In out-of-the-box Alfresco Community 5.1.e I stumble upon this very rare case of a document with a null cmis:contentStreamFileName

[img]http://i.imgur.com/Sl8bOXK.png[/img]

Is it an Alfresco bug?
If it is not a bug, in what cases is this supposed to happen?
I uploaded this file via CMIS (empty text file uploaded by CmisSync). All other files seem to have a cmis:contentStreamFileName.

Thanks a lot!
Nicolas Raoul
CmisSync - Aegif
3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator
Well - the cm:content property is not a mandatory property so you can actually have documents without any content. In that case the content stream properties of CMIS can be null. So that is not a bug in the way Alfresco presents the document.
The question is what potentially went wrong during the upload - there could be an issue there.

nicolasraoul
Star Contributor
Star Contributor
Quoting the <a href="http://docs.oasis-open.org/cmis/CMIS/v1.1/cs01/CMIS-v1.1-cs01.html">CMIS 1.1 specification</a> (2.1.4.3.3):

<cite>The repository MUST return this property with a non-empty value if the document has a content stream and the property filter does not exclude it. If the document has no content stream, the repository MUST return "not set".</cite>

Here even though the object has a content stream (see its cmis:contentStreamId) it returns a null cmis:contentStreamFileName value.

afaust
Legendary Innovator
Legendary Innovator
I didn't notice the content stream ID and mimetype being set. Then yes, it's both a bug and violation of spec.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.