-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] base_import_module, cli: deploy
The use of the `deploy` command always fails because of an incorrect CSRF token since commit 9bae56a. Indeed, the latter re-introduces the session rotation, i.e. the session ID is changed at authentication. Practically, what happens server-side is: - authentication - generate CSRF token - create the response with the token and a change of session ID At this point, the token generated is not correct anymore since it is based on the 'old' session ID. Therefore, when it is reused at uploading, an error is raised. It is actually possible to simplify the process by performing the authentication and the file upload in a single request. There is indeed no real use of extracting the authentication, since the request is then only used to upload the module. opw-1902863 closes odoo#28653
- Loading branch information
Showing
2 changed files
with
18 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters