Changes between Initial Version and Version 1 of Ticket #35673, comment 4


Ignore:
Timestamp:
Aug 28, 2024, 1:28:49 PM (3 weeks ago)
Author:
Mohammad Salehi

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35673, comment 4

    initial v1  
    1 Hello,
    2 
    3 I have worked on this issue and tested some possible solutions. These are the results:
    4 
    5 1_ Adding a flag in `QueryDict` class: 
    6 This does not work because `QueryDict` is recreated with each request so the flag state is not kept requests.
    7 
    8 2_ Changing return value of  `GET`  and `POST` methods in `WSGIRequest` class: 
    9 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.
    10 
    11 3_ Removing all `GET` data:
    12 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.
Back to Top