jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r918496 - /jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/value/SerializableBinary.java
Date Wed, 03 Mar 2010 14:50:16 GMT
Author: jukka
Date: Wed Mar  3 14:50:15 2010
New Revision: 918496

URL: http://svn.apache.org/viewvc?rev=918496&view=rev
Log:
JCR-2531: JCR-RMI problem with large binary values

Modified:
    jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/value/SerializableBinary.java

Modified: jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/value/SerializableBinary.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/value/SerializableBinary.java?rev=918496&r1=918495&r2=918496&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/value/SerializableBinary.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/value/SerializableBinary.java
Wed Mar  3 14:50:15 2010
@@ -181,7 +181,7 @@
                 byte[] buffer = new byte[BUFFER_SIZE];
                 long count = 0;
                 int n = stream.read(buffer);
-                while (n != -1) {
+                while (n != -1 && count < length) {
                     output.write(buffer, 0, n);
                     count += n;
                     n = stream.read(buffer, 0, Math.min(



Mime
View raw message