﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
36246	BaseGeometryWidget.deserialize() does not catch GDALException from malformed GeoJSON	David Buhler	JaeHyuckSa	"When passing malformed GeoJSON, either using incorrect GeoJSON values or simply malformed JSON, a GDALException is raised:

https://github.com/django/django/blob/stable/4.2.x/django/contrib/gis/gdal/prototypes/errcheck.py#L75

This differs from the GEOSException that is thrown when passing in WKT:

https://github.com/django/django/blob/stable/4.2.x/django/contrib/gis/geos/prototypes/errcheck.py#L32

The GEOSException is handled during form deserialization, but not the GDALException, during widget deserialization:
https://github.com/django/django/blob/stable/4.2.x/django/contrib/gis/forms/widgets.py#L54

This seems to be handled properly during field deserialization:
https://github.com/django/django/blob/stable/4.2.x/django/contrib/gis/forms/fields.py#L46

This remains an issue with the 5.2.x. branch."	Bug	closed	GIS	4.2	Normal	fixed		Claude Paroz	Ready for checkin	1	0	0	0	0	0
