Author: justin
Date: Mon Aug 30 15:58:22 2010
New Revision: 990833

URL: http://svn.apache.org/viewvc?rev=990833&view=rev
Log:
fixing multi-valued problem with SLING-1705

Modified:
    
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrPropertyResource.java

Modified: 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrPropertyResource.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrPropertyResource.java?rev=990833&r1=990832&r2=990833&view=diff
==============================================================================
--- 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrPropertyResource.java
 (original)
+++ 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrPropertyResource.java
 Mon Aug 30 15:58:22 2010
@@ -52,7 +52,9 @@ class JcrPropertyResource extends JcrIte
         this.property = property;
         this.resourceType = getResourceTypeForNode(property.getParent())
             + "/" + property.getName();
-        this.getResourceMetadata().setContentLength(property.getLength());
+        if (!property.isMultiple()) {
+            this.getResourceMetadata().setContentLength(property.getLength());
+        }
     }
 
     public String getResourceType() {


Reply via email to