Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits: 0630029c by Cédric Krier at 2024-04-18T19:28:04+02:00 Prevent to get user_id from request without view_args If user_id is accessed before view_args has been setup, we should not cache `None` as value but instead raise an exception. The `user_id` may be accessed before the mapping if the request is logged because the representation of the request used the `rpc_method` which needs to parse the request data. But since 1923117e935d parsing compressed content is only allowed for request with `user_id`. So we can no more include the `rpc_method` is the request has not yet been mapped and so it has a `view_args`. Closes #13203 - - - - - 1 changed file: - trytond/trytond/protocols/wrappers.py View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/0630029c1d5a0a2c7bd45086957f2e0fbed4c427 -- View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/0630029c1d5a0a2c7bd45086957f2e0fbed4c427 You're receiving this email because of your account on foss.heptapod.net.
