Ticket #694 (closed defect: fixed)
[PATCH] Strict controller parameters
|Reported by:||Claudio Martinez <martinezc@…>||Owned by:||anonymous|
Unexpected keyword arguments never get to a controller or validator because they are cleared in the way by adapt_call. This function only leaves the parameters used by the controller.
This can cause many problems, for example if your controller has an optional keyword argument called limit and someone somewhere mistypes limit as linit, you would be using the default value. Depending on the situation, this can cost a lot of time.
When you enable tg.strict_parameters = True in app.cfg, passing unexpected arguments to a controller will raise an exception, just like a normal python function.