You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by dp...@apache.org on 2010/03/30 16:36:40 UTC

svn commit: r929156 - /incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java

Author: dpfister
Date: Tue Mar 30 14:36:39 2010
New Revision: 929156

URL: http://svn.apache.org/viewvc?rev=929156&view=rev
Log:
CMIS-186 - Adding folder or document fails: ""Read-only property: cmis:path"
- No need to remove Property.TYPE_ID any more

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java?rev=929156&r1=929155&r2=929156&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java Tue Mar 30 14:36:39 2010
@@ -366,7 +366,7 @@ class JcrConnection implements Connectio
             VersioningState versioningState)
             throws NameConstraintViolationException {
 
-        String typeId = (String) properties.remove(Property.TYPE_ID);
+        String typeId = (String) properties.get(Property.TYPE_ID);
         if (typeId == null) {
             // use a default type, useful for pure AtomPub POST
             typeId = BaseType.DOCUMENT.getId();