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

null user passed to pre-revprop-change when using WebDAV

From: James Ralston <qralston+ml.svn-users_at_andrew.cmu.edu>
Date: Fri, 01 May 2009 21:20:55 -0400

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.)

Thanks in advance for any replies...
Received on 2009-05-02 03:22:21 CEST

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

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