Bug #645

Conversion from XMP sidecar leaks XMP-SDK exception. (digiKam bug 204042)

Added by Andreas Huggel 206 days ago. Updated 72 days ago.

Status:Closed Start:17 Aug 2009
Priority:Normal Due date:
Assigned to:- % Done:

100%

Category:xmp
Target version:0.19

Description

The conversion from XMP (typically when reading an XMP sidecar file) with invalid (non ISO 8601) timestamps leaks an XMP-SDK exception. The XMP-SDK function SXMPUtils::ConvertToDate throws an XMP_Error if the conversion fails. (Check other XMP-SDK functions as well.)

The Exiv2 library must catch such exceptions and should do something useful anyway, or, if not possible, at least translate them to Exiv2 exceptions.

Reported by François Tissandier as digiKam bug 204042

exiv2-parse-date.patch (670 Bytes) Vladimir Nadvornik, 15 Sep 2009 13:14

exiv2-parse-date2.patch (691 Bytes) Vladimir Nadvornik, 15 Sep 2009 13:39

Associated revisions

Revision 1899
Added by Andreas Huggel 177 days ago

#645: Catch XMP-SDK exception from date conversion. (Vladimir Nadvornik)

Revision 1900
Added by Andreas Huggel 177 days ago

#645: Added check for empty GPS coordinate value to prevent out-of-range exception.

History

Updated by Vladimir Nadvornik 178 days ago

The attached patch should fix it.

Updated by Vladimir Nadvornik 178 days ago

And this is the correct version of the patch ;)

Updated by Andreas Huggel 177 days ago

  • Status changed from New to Resolved
  • Target version set to 0.19
  • % Done changed from 0 to 100

Thanks Vladimir.

With the additional check in r1900 the sample XMP from the original digiKam bug now works.

Updated by Andreas Huggel 72 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF