djs55/xen-api — pull request #4 by euanh (2013-10-22 14:15:47+00:00)
Title: SR: Only consider a filename to be a UUID if it is the correct length

Uuid.is_uuid only checks that the string passed to it _starts_ with a
valid UUID, so Uuid.is_uuid "82cf569a-344d-9c62-95bc-ac693202e25a_foo_bar"
returns True. Uuidm's behaviour is the same...

Check that the file's base name is the right length, in addition to parsing
correctly.

Signed-off-by: Euan Harris