subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@apache.org>
Subject Re: Replacing directory by circular symlink produces malformed XML
Date Fri, 01 Mar 2019 10:52:50 GMT
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


Mime
View raw message