[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

bug: null user passed to pre-revprop-change when using WebDAV?

From: James Ralston <qralston+ml.svn-dev_at_andrew.cmu.edu>
Date: Thu, 14 May 2009 23:05:00 -0400

[I submitted this to the users list on 2009-05-01, but received no
responses.]

Consider the follow pre-revprop-change hook script:

    #! /bin/sh
    exec 1>`mktemp -t revprop-change-XXXXXXXX` 2>&1
    set -x
    echo "$@"
    exit 0

When accessing the repository via the local filesystem, the output
produced when the hook script is invoked to process this command:

    $ svn propedit -r HEAD --revprop svn:log \
      file:///home/testuser/repo/test

Is:

    + echo /home/testuser/repo/test 1 testuser svn:log M
    /home/testuser/repo/test 1 testuser svn:log M
    + exit 0

But when I instead edit a property via WebDAV, like this:

    $ svn propedit -r HEAD --revprop svn:log \
      http://svn.example.com/test/

When the hook script fires, the output is:

    + echo /var/www/svn/repo/test 70 '' svn:log M
    /var/www/svn/repo/test 70 svn:log M
    + exit 0

Instead of passing in the user to the hook script, Subversion passed
in a null string.

In both cases, the version of Subversion is the same: 1.4.2 (as
packaged by Red Hat for RHEL5).

Is this a known bug with mod_dav_svn? (I searched the bug tracker,
but couldn't find anything that seemed relevant.)

If this is a bug, is it fixed in a later version of Subversion?

(In case anyone's wondering, the post-revprop-change hook script has
the exact same bug...)
Received on 2009-05-15 07:26:20 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.