Changes between Initial Version and Version 2 of Ticket #37491
- Timestamp:
- Nov 9, 2026, 5:21:29 PM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37491
- Property Triage Stage Unreviewed → Accepted
- Property Status assigned → new
- Property Version dev → 5.2
-
Ticket #37491 – Description
initial v2 3 3 On 6.1.2 the same input gives "Invalid geometry value.", so this is a regression in 6.1.3, and presumably 6.0.10 and 5.2.19 too, since the fix was backported. 4 4 5 ```python 5 {{{#!py 6 6 from django.contrib.gis import forms 7 7 n = 100_000 8 8 forms.GeometryField().clean('{"type": "Point", "coordinates": ' + "[" * n + "]" * n + "}") 9 9 # 6.1.2: ValidationError; 6.1.3 / main: RecursionError 10 ``` 10 }}} 11 11 12 12 Patch: in `ExternalCRSBlocker.check()`, re-raise `RecursionError` from `json.loads()` as a `ValueError`, so that it's handled like the `JSONDecodeError` (a `ValueError` subclass) that callers already handle. Like #37418, the test mocks `json.loads()`, because the depth at which it raises depends on the interpreter's stack size.