My stab v2 at fixing this:
https://bugzilla.redhat.com/show_bug.cgi?id=1789279
It took me quite some time to go through the whole rfc 4122 just to realize we
do not need to do anything with the versions.
v2:
- Use EEXIST instead of EINVAL
- Put the colliding UUID into the error
- Do not evaluate the PCRE needlessly multiple times
v1:
https://www.redhat.com/archives/libguestfs/2020-January/msg00184.html
Martin Kletzander (2):
rhv-upload: Validate UUIDs passed to -oo rhv-disk-uuid (RHBZ#1789279)
rhv-upload: Check that rhv-disk-uuid is not already taken
(RHBZ#1789279)
v2v/output_rhv_upload.ml | 12 ++++++++++++
v2v/rhv-upload-plugin.py | 12 ++++++++++++
2 files changed, 24 insertions(+)
--
2.25.0