You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2015/09/01 15:21:36 UTC

svn commit: r1700538 - /chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java

Author: fmui
Date: Tue Sep  1 13:21:36 2015
New Revision: 1700538

URL: http://svn.apache.org/r1700538
Log:
minor bug fix in JSON converter

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java?rev=1700538&r1=1700537&r2=1700538&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java Tue Sep  1 13:21:36 2015
@@ -1149,7 +1149,9 @@ public final class JSONConverter {
         if (object.getAcl() != null && object.getAcl().getAces() != null && propertyMode != PropertyMode.QUERY) {
             result.put(JSON_OBJECT_ACL, convert(object.getAcl()));
         }
-        setIfNotNull(JSON_OBJECT_EXACT_ACL, object.isExactAcl(), result);
+        if (propertyMode != PropertyMode.QUERY) {
+            setIfNotNull(JSON_OBJECT_EXACT_ACL, object.isExactAcl(), result);
+        }
 
         // policy ids
         if (object.getPolicyIds() != null && object.getPolicyIds().getPolicyIds() != null