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

Replacing directory by circular symlink produces malformed XML

From: Denis Excoffier <apache19_at_Denis-Excoffier.org>
Date: Thu, 28 Feb 2019 22:44:25 +0100

Hello,

The situation of the replacement of a directory by a circular symlink
generates an XML fragment which is invalid, hence triggers a failure
within the calling system. See hereafter the recipe.

Starting from a clean folder, do the following:

% svn mkdir 1
A 1
% rmdir 1
% ln -s 1 1
% touch 2
% svn status --xml
<?xml version="1.0" encoding="UTF-8"?>
<status>
<target
   path=".">
<entry
   path="1">
<wc-status
   item="obstructed"
   revision="-1"
   props="none">
</wc-status>
</entry>
svn: E000062: Can't open directory '/Users/dexco/svntest/svn/1': Too many levels of symbolic links
%

There is a missing end tag for <target> and <status>.
Another issue is missing output: path '2' is not listed.

The correction of these issues will be much appreciated (i use 1.11.1).

Regards,

Denis Excoffier.
Received on 2019-03-01 11:43:49 CET

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