getPhoto() in tika.go divides by the parsed exif:ExposureTime value without checking for zero:
|
photo.SetExposureDenominator(math.Round(1 / i)) |
When i == 0, this produces +Inf, which causes json.Marshal to fail:
failed to marshal resource: json: error calling MarshalJSON for type *libregraph.Photo: json: unsupported value: +Inf
This happens with files containing embedded images that have default/zeroed EXIF data (e.g. ONLYOFFICE sample PPTX files, where Tika returns exif:ExposureTime: "0.0" for all 8 embedded placeholder images).
The affected file never gets indexed.
getPhoto() in tika.go divides by the parsed exif:ExposureTime value without checking for zero:
opencloud/services/search/pkg/content/tika.go
Line 222 in 1c138ef
When i == 0, this produces +Inf, which causes json.Marshal to fail:
failed to marshal resource: json: error calling MarshalJSON for type *libregraph.Photo: json: unsupported value: +Inf
This happens with files containing embedded images that have default/zeroed EXIF data (e.g. ONLYOFFICE sample PPTX files, where Tika returns exif:ExposureTime: "0.0" for all 8 embedded placeholder images).
The affected file never gets indexed.