You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by je...@apache.org on 2011/11/13 22:53:41 UTC
svn commit: r1201525 -
/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java
Author: jens
Date: Sun Nov 13 21:53:41 2011
New Revision: 1201525
URL: http://svn.apache.org/viewvc?rev=1201525&view=rev
Log:
InMemory: correct property filter for getObject
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.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/types/PropertyCreationHelper.java?rev=1201525&r1=1201524&r2=1201525&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/types/PropertyCreationHelper.java Sun Nov 13 21:53:41 2011
@@ -228,7 +228,7 @@ public class PropertyCreationHelper {
// fill not-set properties from type definition (as spec requires)
Map<String, PropertyDefinition<?>> propDefs = td.getPropertyDefinitions();
for (PropertyDefinition<?> propDef : propDefs.values()) {
- if (!properties.containsKey(propDef.getId()))
+ if (!properties.containsKey(propDef.getId()) && FilterParser.isContainedInFilter(propDef.getId(), requestedIds))
properties.put(propDef.getId(), getEmptyValue(propDef));
}