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();


Reply via email to