]> git.ipfire.org Git - thirdparty/libvirt.git/commit
schema: Don't validate paths
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Aug 2016 08:52:30 +0000 (10:52 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 May 2017 19:27:55 +0000 (15:27 -0400)
commitc7d6d5a6caa2befecb1bba83dfdac6cc0f749ac4
tree16cf36432018404e521fa771a6c0d9320c1e06a1
parent8123b6bc355a75772d07041196b970cea492f978
schema: Don't validate paths

https://bugzilla.redhat.com/show_bug.cgi?id=1353296

On UNIX like systems there are no constraints on what characters
can be in file/dir names (except for NULL, obviously). Moreover,
some values that we think of as paths (e.g. disk source) are not
necessarily paths at all. For instance, some hypervisors take
that as an arbitrary identifier and corresponding file is then
looked up by hypervisor in its table. Instead of trying to fix
our regular expressions (and forgetting to include yet another
character there), lets drop the validation completely.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
(cherry picked from commit c4b92f1a8a9cb64a2c4a9f0ed899ed8a7d95d935)
docs/schemas/basictypes.rng
tests/domainschemadata/domain-disk-source-space.xml [new file with mode: 0644]