Changes between Initial Version and Version 2 of Ticket #37491


Ignore:
Timestamp:
Nov 9, 2026, 5:21:29 PM (3 weeks ago)
Author:
Jacob Walls
Comment:

Thanks for the report. It makes sense to catch that cleanly. Deassigning due to single PR rate limit.

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  
    33On 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.
    44
    5 ```python
     5{{{#!py
    66from django.contrib.gis import forms
    77n = 100_000
    88forms.GeometryField().clean('{"type": "Point", "coordinates": ' + "[" * n + "]" * n + "}")
    99# 6.1.2: ValidationError; 6.1.3 / main: RecursionError
    10 ```
     10}}}
    1111
    1212Patch: 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.
Back to Top