incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From enor...@apache.org
Subject svn commit: r952077 - /sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/DefaultContentCreator.java
Date Mon, 07 Jun 2010 03:35:33 GMT
Author: enorman
Date: Mon Jun  7 03:35:32 2010
New Revision: 952077

URL: http://svn.apache.org/viewvc?rev=952077&view=rev
Log:
SLING-1526 Extra property names of security:principals lost when loaded via contentloader.
  Applied patch from Mike Moulton.

Modified:
    sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/DefaultContentCreator.java

Modified: sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/DefaultContentCreator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/DefaultContentCreator.java?rev=952077&r1=952076&r2=952077&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/DefaultContentCreator.java
(original)
+++ sling/trunk/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/DefaultContentCreator.java
Mon Jun  7 03:35:32 2010
@@ -739,7 +739,7 @@ public class DefaultContentCreator imple
         	Set<Entry<String, Object>> entrySet = extraProperties.entrySet();
         	for (Entry<String, Object> entry : entrySet) {
         		Value value = createValue(valueFactory, entry.getValue());
-        		authorizable.setProperty(name, value);
+        		authorizable.setProperty(entry.getKey(), value);
 			}
         }
 	}
@@ -780,7 +780,7 @@ public class DefaultContentCreator imple
         	Set<Entry<String, Object>> entrySet = extraProperties.entrySet();
         	for (Entry<String, Object> entry : entrySet) {
         		Value value = createValue(valueFactory, entry.getValue());
-        		authorizable.setProperty(name, value);
+        		authorizable.setProperty(entry.getKey(), value);
 			}
         }
 	}



Mime
View raw message