Package: libsvn-perl
Version: 1.8.10-6+deb8u4

Hello,

when a revision string in the form of "{DATE}" is passed to the Perl bindings,
the string will be modified by the bindings code, leading to a removal of the
closing brace. This leads to errors, for example if we pass the same "{DATE}"
twice or rely on the exact format later on.

The problem can be reproduced with the following script (developed by Rainer
Müller <rai...@codingfarm.de>):

# Beginning of example code
use SVN::Client;

my $ctx = SVN::Client->new();

my $repo = "http://svn.apache.org/repos/asf/subversion/trunk";;
my $rev = "{2016-11-02 12:34:56}";

print "Before: $rev\n";

$ctx->info($repo, "HEAD", $rev, sub { print $_[1]->rev . "\n"; }, 0);

print "After:  $rev\n";
# End of example code

which gives the following output:

Before: {2016-11-02 12:34:56}
1767638
After:  {2016-11-02 12:34:56

The issue has already been reported to the upstream developers [0] and a fix has
been committed as revision 1767768 in the upstream repository (the patch can
also be viewed on the github mirror [1]).

Please consider porting this patch into libsvn-perl as it fixes the usage of the
{DATE} revision format.

I'm on Debian GNU/Linux 8.6 (jessie), kernel 3.16.0-4-amd64.

Best regards,

Andreas

[0]
http://mail-archives.apache.org/mod_mbox/subversion-dev/201611.mbox/%3C2ee008e0-c073-9b1c-16b3-ae63a4dae602%40codingfarm.de%3E
[1]
https://github.com/apache/subversion/commit/3dcb6906f3709d55971d12158fc693b5cba6b838

Reply via email to