chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1181759 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrDocument.java
Date Tue, 11 Oct 2011 12:54:42 GMT
Author: mduerig
Date: Tue Oct 11 12:54:42 2011
New Revision: 1181759

URL: http://svn.apache.org/viewvc?rev=1181759&view=rev
Log:
CMIS-438: JcrDocument.setContentStream() should call getContextNode() to get content node
- add clarifying comment

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrDocument.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/JcrDocument.java?rev=1181759&r1=1181758&r2=1181759&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrDocument.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/main/java/org/apache/chemistry/opencmis/jcr/JcrDocument.java
Tue Oct 11 12:54:42 2011
@@ -105,7 +105,8 @@ public abstract class JcrDocument extend
      */
     public JcrNode setContentStream(ContentStream contentStream, boolean overwriteFlag) {
         try {
-            // get content node
+            // get content node. For version series this is *not* the same as the
+            // context node. See CMIS-438.
             Node contentNode = getNode().getNode(Node.JCR_CONTENT);
             Property data = contentNode.getProperty(Property.JCR_DATA);
 



Mime
View raw message