Bug #71745
normalize_geolocation, InvalidOperation: [<class 'decimal.ConversionSyntax'>]
Start date:
26 November 2022
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
No
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/97506/
InvalidOperation: [<class 'decimal.ConversionSyntax'>] (11 additional frame(s) were not displayed) ... File "wcs/formdef.py", line 896, in add_fields_to_form transient_formdata.data.update(self.get_field_data(field, widget)) File "wcs/formdef.py", line 1028, in get_field_data d[field.id] = widget.parse() File "quixote/form/widget.py", line 135, in parse self._parse(request) File "wcs/qommon/form.py", line 3257, in _parse lat_lon = misc.normalize_geolocation({'lat': lat, 'lon': lon}) File "wcs/qommon/misc.py", line 788, in normalize_geolocation lat = decimal.Decimal(lat_lon['lat'])
Files
Associated revisions
History
Updated by Lauréline Guérin 2 months ago
- Project changed from Suivi des traces to w.c.s.
- Subject changed from InvalidOperation: [<class 'decimal.ConversionSyntax'>] to normalize_geolocation, InvalidOperation: [<class 'decimal.ConversionSyntax'>]
- Assignee set to Lauréline Guérin
Updated by Lauréline Guérin 2 months ago
- File 0001-misc-fix-normalize_geolocation-with-non-decimal-valu.patch 0001-misc-fix-normalize_geolocation-with-non-decimal-valu.patch added
- Status changed from Nouveau to Solution proposée
- Patch proposed changed from No to Yes
Updated by Frédéric Péters 2 months ago
- Status changed from Solution proposée to Solution validée
Updated by Lauréline Guérin 2 months ago
- Status changed from Solution validée to Résolu (à déployer)
commit 26ee88beddbefa637215e74ecf25c5e0296f5b97 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Sat Nov 26 09:32:46 2022 +0100 misc: fix normalize_geolocation with non decimal values (#71745)
Updated by Transition automatique 2 months ago
- Status changed from Résolu (à déployer) to Solution déployée
misc: fix normalize_geolocation with non decimal values (#71745)