Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-1807

ra_dav doesn't permit properties to have colons in their names.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • all
    • 1.1.0
    • libsvn_ra_neon
    • None

    Description

      With the exception of internal properties ra_dav will fail when dealing with a
      property name with a colon in it:
      
      $ svn pg --revprop -r 1663 svk:signature http://svn.collab.net/repos/svn/
      subversion/libsvn_ra_dav/util.c:661: (apr_err=175002)
      svn: PROPFIND request failed on '/repos/svn/!svn/vcc/default'
      subversion/libsvn_ra_dav/util.c:285: (apr_err=175002)
      svn: PROPFIND of '/repos/svn/!svn/vcc/default': 400 Bad Request
      (http://svn.collab.net
      
      Testing with a repo using ra_local will not reproduce the same issue:
      $ svnadmin create repo
      $ echo -e '#!/bin/sh\nexit 0' > repo/hooks/pre-revprop-change
      $ chmod 755 repo/hooks/pre-revprop-change
      $ svn co file://`pwd`/repo wc
      $ touch foo
      $ cd wc
      $ svn add foo           
      A         foo
      $ svn commit -m 'add foo'
      Adding         foo
      Transmitting file data .
      Committed revision 1.
      $ svn ps --revprop -r1 moo:cow 'is cool' 
      property 'moo:cow' set on repository revision '1'
      $ svn pg --revprop -r1 moo:cow
      is cool
      
      Looks like an escaping issue.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            breser Ben Reser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: