You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2013/01/15 13:41:15 UTC

svn commit: r1433379 - in /chemistry/dotcmis/trunk: DotCMIS/binding/atompub/atompub-writer.cs release.bat

Author: fmui
Date: Tue Jan 15 12:41:15 2013
New Revision: 1433379

URL: http://svn.apache.org/viewvc?rev=1433379&view=rev
Log:
CMIS-619: fixed AtomPub content upload

Modified:
    chemistry/dotcmis/trunk/DotCMIS/binding/atompub/atompub-writer.cs
    chemistry/dotcmis/trunk/release.bat

Modified: chemistry/dotcmis/trunk/DotCMIS/binding/atompub/atompub-writer.cs
URL: http://svn.apache.org/viewvc/chemistry/dotcmis/trunk/DotCMIS/binding/atompub/atompub-writer.cs?rev=1433379&r1=1433378&r2=1433379&view=diff
==============================================================================
--- chemistry/dotcmis/trunk/DotCMIS/binding/atompub/atompub-writer.cs (original)
+++ chemistry/dotcmis/trunk/DotCMIS/binding/atompub/atompub-writer.cs Tue Jan 15 12:41:15 2013
@@ -189,11 +189,10 @@ namespace DotCMIS.Binding.AtomPub
                 byte[] buffer = new byte[BufferSize];
                 int readBytes = 0;
 
-                do
+                while ((readBytes = br.Read(buffer, 0, BufferSize)) != 0)
                 {
-                    readBytes = br.Read(buffer, 0, BufferSize);
                     writer.WriteBase64(buffer, 0, readBytes);
-                } while (BufferSize <= readBytes);
+                }
             }
         }
     }

Modified: chemistry/dotcmis/trunk/release.bat
URL: http://svn.apache.org/viewvc/chemistry/dotcmis/trunk/release.bat?rev=1433379&r1=1433378&r2=1433379&view=diff
==============================================================================
--- chemistry/dotcmis/trunk/release.bat (original)
+++ chemistry/dotcmis/trunk/release.bat Tue Jan 15 12:41:15 2013
@@ -25,7 +25,7 @@ rem It requires Cygwin.
 set DOTCMISVERSION=0.5
 set DOTCMISZIPSRC=chemistry-dotcmis-%DOTCMISVERSION%-src.zip
 set DOTCMISZIPBIN=chemistry-dotcmis-%DOTCMISVERSION%-bin.zip
-set DOTCMISRC=RC1
+set DOTCMISRC=RC2
 
 set CYGWIN=ntea