chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1404142 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrNode.java
Date Wed, 31 Oct 2012 13:53:47 GMT
Author: mduerig
Date: Wed Oct 31 13:53:46 2012
New Revision: 1404142

URL: http://svn.apache.org/viewvc?rev=1404142&view=rev
Log:
CMIS-583: Root node does not have name  
Credits to Ivan Vasyliev for the patch

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrNode.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrNode.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrNode.java?rev=1404142&r1=1404141&r2=1404142&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrNode.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrNode.java
Wed Oct 31 13:53:46 2012
@@ -490,6 +490,10 @@ public abstract class JcrNode {
 
         // name
         String name = getNodeName();
+        if (PathManager.CMIS_ROOT_ID.equals(objectId) && "".equals(name)) {
+        	//set default name for the root node
+        	name = PathManager.CMIS_ROOT_ID;
+        }
         addPropertyString(properties, typeId, filter, PropertyIds.NAME, name);
         objectInfo.setName(name);
 



Mime
View raw message