You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Branko Čibej <br...@apache.org> on 2019/03/01 10:52:50 UTC

Re: Replacing directory by circular symlink produces malformed XML

On 28.02.2019 22:44, Denis Excoffier wrote:
> 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).


You can't expect valid output from a command that fails. I'd have
thought that was obvious?

-- Brane