Your message dated Sat, 20 Dec 2014 21:50:34 -0500
with message-id <[email protected]>
and subject line Re: Bug#767530: SVN::Ra: get_dir fails
has caused the Debian Bug report #767530,
regarding SVN::Ra: get_dir fails
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
767530: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767530
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libsvn-perl
Version: 1.8.10-3
Severity: important
Tags: upstream
The attached script using get_dir fails with SVN 1.8.10-3 in unstable.
The SVN package in Debian stable (1.6.17dfsg-4+deb7u6) is fine.
I get the following failure:
Incorrect parameters given: Could not convert '%ld' into a number at ...
I expect something like the following output (which 1.6.17 gives me):
$VAR1 = [
'debian',
'.scm-settings',
'tools',
'COPYING.CDDL',
'src',
'include',
'COPYING',
'Config.kmk',
'Makefile.kmk',
'configure.vbs',
'configure',
'doc',
'Doxyfile.Core'
];
$VAR1 = {
'svn:entry:committed-rev' => '28924',
'svn:ignore' => 'out
AutoConfig.kmk
LocalConfig.kmk
configure.log
env.sh
env.bat
tinderclient.log
SlickEdit
',
'svn:entry:last-author' => 'vboxsync',
'svn:externals' => 'kBuild -r 2360
http://www.virtualbox.org/svn/kbuild-mirror/trunk/kBuild',
'svn:entry:uuid' => 'cfe28804-0f27-0410-a406-dd0f0b0b656f',
'svn:mergeinfo' => '/branches/VBox-3.0:58652',
'svn:wc:ra_dav:version-url' => '/svn/vbox/!svn/ver/28924/trunk',
'svn:entry:committed-date' => '2010-04-30T09:08:17.252108Z'
};
---
This causes problems with git-svn and necessitates a workaround:
http://mid.gmane.org/[email protected]
http://mid.gmane.org/[email protected]
http://mid.gmane.org/[email protected]
Thanks for reading!
use SVN::Ra;
use Data::Dumper;
my $ra = SVN::Ra->new(url => 'http://www.virtualbox.org/svn/vbox/trunk');
my ($dirs, $rev, $props) = $ra->get_dir('', 28924); # failure
print Dumper([keys %$dirs]);
print Dumper($props);
--- End Message ---
--- Begin Message ---
On Sat, Nov 01, 2014 at 10:15:00AM -0400, James McCoy wrote:
> On Fri, Oct 31, 2014 at 06:54:25PM +0000, Eric Wong wrote:
> > The attached script using get_dir fails with SVN 1.8.10-3 in unstable.
> > The SVN package in Debian stable (1.6.17dfsg-4+deb7u6) is fine.
> > I get the following failure:
> >
> > Incorrect parameters given: Could not convert '%ld' into a number at ...
> >
> > I expect something like the following output (which 1.6.17 gives me):
>
> This can actually be seen just by running “svn ls
> http://www.virtualbox.org/svn/vbox/trunk/COPYING”. It happens when
> running ls against any file in that repo. The problem is that the
> server is returning an invalid value for the getcontentlength property
> of the DAV request:
>
> […]
>
> The <lp1:getcontentlength> node should have a number, not %ld. In SVN
> 1.6.x, when libsvn_subr tried to convert “%ld” to a number, it didn't
> check errno afterward and just used the returned value of 0. In 1.8.x,
> SVN actually checks errno and reports (albeit badly) that the value
> isn't a proper number.
As described in the upstream thread[0], this is a bug in the server and
the client is properly rejecting the malformed data. The server needs
to be fixed.
[0]: http://thread.gmane.org/gmane.comp.version-control.subversion.devel/147455
Cheers,
--
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>
signature.asc
Description: Digital signature
--- End Message ---