A document has a cmis:contentStreamFileName value of null, I have never seen this, is it a bug?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 04:53 AM
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2016 03:59 AM
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.
The question is what potentially went wrong during the upload - there could be an issue there.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2016 03:21 AM
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.
<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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2016 07:12 AM
I didn't notice the content stream ID and mimetype being set. Then yes, it's both a bug and violation of spec.
