Red Hat Bugzilla – Bug 855474
svn mkdir --parents generates extraneous directories when the targets already exist.
Last modified: 2017-10-17 03:54:23 EDT
Created attachment 610856 [details]
Shell script which runs "svn mkdir --parents" with three nested directories
Description of problem:
I noticed this when writing an application with the Perl bindings, and later confirmed it when using the command-line client with similar options. If I use the --parents option when creating multiple directories in a subversion repository, and those directories already exist, the client generates additional directories that were not in the request. For example, a repeated request to create "test/one", "test/one/two", and "test/one/two/three" results in creating "test/one/two/one/two/three".
Version-Release number of selected component (if applicable):
1.6.11-7.el6; also seen in 1.6.11-10.el5_8
Always (provided one starts with a non-existent parent directory).
Steps to Reproduce:
1. Run the attached shell script, giving in the URL of a new directory in a subversion repository.
2. Run the script again with the same URL.
It creates the child directories one/two/one/two/three.
Should have returned an error "405 Method Not Allowed".
I will also be adding the access logs from the subversion server which show the client sending requests to create directories that it shouldn't.
Created attachment 610858 [details]
Access log from the subversion server
The log entries from the first time I ran the shell script have a time stamp of 07/Sep/2012:13:38:32-38:42. The second time I ran the shell script was at 07/Sep/2012:13:38:51-38:57.
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.