#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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701918627e4d3-fdfea465-b482-46d3-8183-2473233fcf5e-000000%40eu-central-1.amazonses.com.

Reply via email to