daniel782 / epubcheck

Automatically exported from code.google.com/p/epubcheck
0 stars 0 forks source link

Invalid UUID is not reported as an error #109

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:
If the OPF manifest metadata contains an identifier which starts with urn:uuid, 
the UUID is not validated.

METHOD:

1. Package an ePub file with an invalid UUID as dc:identifier, such as 
urn:uuid:12385322
2. Use epubcheck to validate the ePub

RESULT:

No errors are triggered, the ePub passes as valid.

EXPECTED:

epubcheck should report an error for the ePub, stating that the UUID is invalid.

PLATFORM:

Version 1.2 of epubcheck on any platform will give the same result.

ADDITIONAL INFO:

I've attached a sample ePub.

Original issue reported on code.google.com by ionut.ma...@gmail.com on 21 Jun 2011 at 2:24

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed the issue by validating the dc:identifier if it starts with urn:uuid. If 
the UUID is invalid, the tool will report an error.

Original comment by ionut.ma...@gmail.com on 21 Jun 2011 at 2:30