XPComment with invalid caracter breaks upload
Issue reported by GeoMechain. The attached picture breaks API on upload. The issue comes from the Exif.Image.XPComment
field, which has an invalid Unicode attribute according to psycopg:
psycopg.errors.UntranslatableCharacter: unsupported Unicode escape sequence
DETAIL: \u0000 cannot be converted to text.
CONTEXT: JSON data, line 1: ...o.GPSMapDatum": "WGS-84", "Exif.Image.XPComment":...
unnamed portal parameter $7 = '...'
The image doesn't break the TagReader though, so a bit more testing on API-side is needed, and to see if we fix this on TagReader or API.