--On February 16, 2005 3:22:33 PM -0600 kfogel@collab.net wrote:
> "Dale Worley" <dworley@pingtel.com> writes:
>>
>> But you've identified the Subversion problem correctly -- a file name can
>> contain "non-printable" characters, which are forbidden in XML. Worse,
>> what you might think is a valid escape sequence to represent it -- &8;
>> -- is also forbidden in XML, because "character entities" are forbidden
>> from representing non-printable characters. See the discussion in
>>
>> http://www.w3c.org/TR/2004/REC-xml-20040204/#dt-charref
>>
>> Subversion may need to extend XML to allow this (and has to verify that
>> its XML parser can deal with it).
>
> Thanks for the analysis and the reference, Dale. You're right, and
> Subversion's way of dealing with this is that (now) it no longer
> permits such paths in the repository. See issue #1954, and see r12581
> and r12632. There is a long thread on the topic, linked to from the
> issue I believe, that explains the reasoning behind the decision.
Thanks; that's quite helpful. I'm sorry to have missed it in the archive.
I was too focused on the specific error, and should have searched for any
XML-related issue.
> So Charles, your solution right now is to rename that file in the
> repository (perhaps even via dump/transform/load, so it's fixed in
No problem. It's a test repository; we can just drop and recreate it.
It's helped to give me some idea of how svn might oddball file names
imported from outside vendors' packages, but there's no history in the
repository that's critical.
> history, if that's feasible for your team). Future versions of
> Subversion won't allow that path to be in the repository in the first
> place.
That's a big help.
Two quick questions:
- Is it worth a small patch to xml.c to include the contents of the
offending buffer in a "Malformed XML" error message? It could yield a
long/multiline message, but would help identify the offending text in a
large operation.
- Is it worth adding a bit of text about path name requirements to the
docs? Would it go in the Book (e.g. the UTF/Path requirements bit of the
developer info, or even a brief blurb about character sets in Ch 1), or
elsewhere?
--
Regards,
Charles Bailey < bailey _at_ newman _dot_ upenn _dot_ edu >
Newman Center at the University of Pennsylvania
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 16 23:43:21 2005