You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Francois Beausoleil <fb...@users.sourceforge.net> on 2003/05/18 04:18:33 UTC
Checksum error through RA_DAV on Win2K, with binary file
Hello guys,
I believe I found an obscure bug somewhere deep in RA_DAV. I might be
wrong
here, but please bear with me.
I downloaded a fresh copy of JUnit from SourceForge's download servers.
I
unzipped the file and ran jar tf junit.jar. This command lists the jar's
content.
JAR ran, and everything was fine.
I added the junit.jar to a working copy, and I committed.
When I tried to later checkout trunk/ on this project, SVN stopped while
checking out junit.jar. SVN was complaining about a checksum mismatch
error.
I browsed the repository and downloaded the file through the HTTP
protocol.
I then went to the command line and ran the same command (jar tf
junit.jar).
This time, JAR stopped in mid-stream and complained about a ZipException.
So, I started investigating...
D:\httpd>svn --version
svn, version 0.22.2 (r5918)
D:\httpd>rm -rf bin-repos
D:\httpd>svnadmin create bin-repos
D:\httpd>cd ..
D:\>svn co file:///httpd/bin-repos wc <--- Tried with ra_dav, same
result
Checked out revision 0.
D:\>cd wc
D:\wc>copy "C:\...\junit3.8.1\junit.jar"
1 fichier(s) copié(s).
D:\wc>copy "C:\...\junit3.8.1\src.jar"
1 fichier(s) copié(s).
D:\wc>copy "C:\...\junit3.8.1\cpl-v10.html"
1 fichier(s) copié(s).
D:\wc>dir
Le volume dans le lecteur D s'appelle Disque local
Le numéro de série du volume est 84CC-3527
Répertoire de D:\wc
2003-05-18 00:01 <REP> .
2003-05-18 00:01 <REP> ..
2003-05-18 00:00 <REP> .svn
2003-05-17 23:58 15 172 cpl-v10.html
2003-05-17 23:58 121 070 junit.jar
2003-05-17 23:58 57 635 src.jar
3 fichier(s) 193 877 octets
3 Rép(s) 2 847 920 128 octets libres
D:\wc>svn add junit.jar src.jar cpl-v10.html
A (bin) junit.jar
A (bin) src.jar
A cpl-v10.html
D:\wc>svn commit -m ""
Adding cpl-v10.html
Adding (bin) junit.jar
Adding (bin) src.jar
Transmitting file data ...
Committed revision 1.
D:\wc>cd ..\
D:\>svn co file:///httpd/bin-repos ra_local-wc
A ra_local-wc/src.jar
A ra_local-wc/junit.jar
A ra_local-wc/cpl-v10.html
Checked out revision 1.
D:\>svn co svn://localhost/bin-repos ra_svn-wc
A ra_svn-wc/src.jar
A ra_svn-wc/junit.jar
A ra_svn-wc/cpl-v10.html
Checked out revision 1.
D:\>svn co http://localhost:5649/bin/repos ra_dav-wc
svn: A checksum mismatch occurred
svn: could not checkout a file
svn: close_file: expected and actual checksums do not match:
(ra_dav-wc/junit.jar):
expected checksum: 1f40fb782a4f2cf78f161d32670f7a3a
actual checksum: 10060a3038e3440a0a2209e16589eb2a
Please note that I tried twice: Initial checkout/commit through ra_local
or
ra_dav, with the same results.
Since I can only reproduce that problem with the junit.jar, it might be
something specific in the data of this file that causes an error
somewhere, but only when through RA_DAV.
So, I am running Apache 2.0.45 (MSI installer), SVN 0.22.2 (r5918), Win
XP
Pro (No SP).
Thanks !
Francois Beausoleil
--
Francois Beausoleil
Developer of Java Gui Builder
http://jgb.sourceforge.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Checksum error through RA_DAV on Win2K, with binary file
Posted by Branko Čibej <br...@xbc.nu>.
Mark Watts wrote:
>>-----Original Message-----
>>From: Branko Cibej [mailto:brane@xbc.nu]
>>Sent: Sunday, May 18, 2003 07:57
>>To: Francois Beausoleil
>>Cc: dev@subversion.tigris.org
>>
>>Francois Beausoleil wrote:
>>
>>[data corruption over ra_dav]
>>
>>
>>
>>>So, I am running Apache 2.0.45 (MSI installer), SVN 0.22.2
>>>
>>>
>>(r5918), Win
>>
>>
>>>XP Pro (No SP).
>>>
>>>
>>>
>>There's your error. There is a bug in the Windows XP TCP
>>stack that can cause data corruption in certain edge cases,
>>which the Apache server happens to expose. Install SP1, and
>>your problem should go away.
>>
>>
>
>As a Windows user might I suggest that as this is a known issue, that the
>windows installer issue a warning about possible data corruption if running
>on XP and SP1 is not found. At the very least I would recommend a large
>comment in the release notes.
>
>
Strictly speaking, this is an Apache issue, not a Subversion issue. But
it does make sense for us to warn about that. Could you write a patch
for INSTALL? I expect we'd need a generic section on platform-specific
problems (the Mac OS X issue with BDB 4.0.x is another one)
--
Brane Čibej <br...@xbc.nu> http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
RE: Checksum error through RA_DAV on Win2K, with binary file
Posted by Mark Watts <mw...@stny.rr.com>.
> -----Original Message-----
> From: Branko Cibej [mailto:brane@xbc.nu]
> Sent: Sunday, May 18, 2003 07:57
> To: Francois Beausoleil
> Cc: dev@subversion.tigris.org
>
> Francois Beausoleil wrote:
>
> [data corruption over ra_dav]
>
> >So, I am running Apache 2.0.45 (MSI installer), SVN 0.22.2
> (r5918), Win
> >XP Pro (No SP).
> >
> There's your error. There is a bug in the Windows XP TCP
> stack that can cause data corruption in certain edge cases,
> which the Apache server happens to expose. Install SP1, and
> your problem should go away.
As a Windows user might I suggest that as this is a known issue, that the
windows installer issue a warning about possible data corruption if running
on XP and SP1 is not found. At the very least I would recommend a large
comment in the release notes.
-mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Checksum error through RA_DAV on Win2K, with binary file
Posted by Branko Čibej <br...@xbc.nu>.
Francois Beausoleil wrote:
[data corruption over ra_dav]
>So, I am running Apache 2.0.45 (MSI installer), SVN 0.22.2 (r5918), Win
>XP Pro (No SP).
>
There's your error. There is a bug in the Windows XP TCP stack that can
cause data corruption in certain edge cases, which the Apache server
happens to expose. Install SP1, and your problem should go away.
--
Brane Čibej <br...@xbc.nu> http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Checksum error through RA_DAV on Win2K, with binary file
Posted by Jani Averbach <ja...@cc.jyu.fi>.
I can't reproduce this in Linux.
On Sun, 18 May 2003, Francois Beausoleil wrote:
> I downloaded a fresh copy of JUnit from SourceForge's download servers.
> I unzipped the file and ran jar tf junit.jar. This command lists the jar's
> content. JAR ran, and everything was fine.
...
> D:\>svn co http://localhost:5649/bin/repos ra_dav-wc
> svn: A checksum mismatch occurred
> svn: could not checkout a file
> svn: close_file: expected and actual checksums do not match:
> (ra_dav-wc/junit.jar):
> expected checksum: 1f40fb782a4f2cf78f161d32670f7a3a
> actual checksum: 10060a3038e3440a0a2209e16589eb2a
svn co http://localhost:8080/tmp/repo wc-dav
A wc-dav/cpl-v10.html
A wc-dav/junit.jar
A wc-dav/src.jar
Checked out revision 1.
md5sum wc-dav/*.jar junit3.8.1/*.jar
1f40fb782a4f2cf78f161d32670f7a3a wc-dav/junit.jar
1f40fb782a4f2cf78f161d32670f7a3a junit3.8.1/junit.jar
accf5564635fc967e0c8ccf9a67422f2 wc-dav/src.jar
accf5564635fc967e0c8ccf9a67422f2 junit3.8.1/src.jar
> So, I am running Apache 2.0.45 (MSI installer), SVN 0.22.2 (r5918), Win
> XP Pro (No SP).
Linux, Apache 2.0.45, SVN (r5961). And indeed we are using same junit.jar
(checksums are same).
BR, Jani
--
Jani Averbach
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org