Author: jens
Date: Tue Sep 18 20:23:39 2012
New Revision: 1387343
URL: http://svn.apache.org/viewvc?rev=1387343&view=rev
Log:
InMemory: set no content length property if object has no content
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/DocumentImpl.java
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/DocumentImpl.java
URL:
http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/DocumentImpl.java?rev=1387343&r1=1387342&r2=1387343&view=diff
==============================================================================
---
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/DocumentImpl.java
(original)
+++
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/storedobj/impl/DocumentImpl.java
Tue Sep 18 20:23:39 2012
@@ -113,7 +113,7 @@ public class DocumentImpl extends Abstra
}
if
(FilterParser.isContainedInFilter(PropertyIds.CONTENT_STREAM_LENGTH,
requestedIds)) {
properties.put(PropertyIds.CONTENT_STREAM_LENGTH,
objFactory.createPropertyIntegerData(
- PropertyIds.CONTENT_STREAM_LENGTH, null != fContent ?
fContent.getBigLength() : BigInteger.ZERO));
+ PropertyIds.CONTENT_STREAM_LENGTH, null != fContent ?
fContent.getBigLength() : null));
}
if
(FilterParser.isContainedInFilter(PropertyIds.CONTENT_STREAM_MIME_TYPE,
requestedIds)) {
properties.put(PropertyIds.CONTENT_STREAM_MIME_TYPE,
objFactory.createPropertyStringData(