#35673: ExceptionReporter.get_traceback_data() does not handle when request.GET
data exceeds DATA_UPLOAD_MAX_NUMBER_FIELDS
-------------------------------------+-------------------------------------
Reporter: Pēteris Caune | Owner: Mohammad
| Salehi
Type: Bug | Status: assigned
Component: Error reporting | Version: 5.1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mohammad Salehi):
Hello,
I have worked on this issue and tested some possible solutions. These are
the results:
1_ Adding a flag in `QueryDict` class:
This does not work because `QueryDict` is recreated with each request so
the flag state is not kept requests.
2_ Changing return value of `GET` and `POST` methods in `WSGIRequest`
class:
Changing how `GET` and `POST` methods return values will only stop the
`TooManyFieldsSent` error from showing. This will make `GET` and `POST`
methods not work at all. Request processing will not work correctly and
important data will be lost. This approach only hides the error message
and does not fix the real problem with handling data.
3_ Removing all `GET` data:
If we set `request.GET` to an empt dict in foo method, it shows the error
and the problem got fixed but it doesn't make sense to alter GET data.
--
Ticket URL: <
https://code.djangoproject.com/ticket/35673#comment:4>