summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/data.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-09-29 14:46:48 +0200
committerDenis Ledoux <dle@odoo.com>2015-09-29 14:56:22 +0200
commitbcc2f620dbf67230c25fdc4da487e22dfab9a805 (patch)
tree1e23c987f4c3ccc2f32453324f87516d25bbb269 /addons/web/static/src/js/framework/data.js
parenta4bc3c23aac9a73b5f726df570d672dce918dc82 (diff)
[FIX] website: `geoip` not defined in session for invalid session
The method that set `geoip` in the session, `_geoip_resolve`, is called just before `self._authenticate`, which logout the user when the session is invalid, and therefore reset the session. Therefore, `geoip` could not be in the session in that place. This isn't that bad, as, at the next request, the `geoip` will be correctly set in the session. During the analysis of this issue, we observed that the reset of the session is actually not saved, because the save of this session is done in `Root.get_response`, through the call `self.session_store.save(httprequest.session)`, but `Root.get_response` is not called in `Root.dispatch` in case of HTTPException (500 internal server error in this case). This might need to be changed, to do the session save with a finally in this `Root.dispatch` method, so the above bug could have been resolved with a simple refresh (which would have re-defined the `geoip` in the session). opw-650416
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
0 files changed, 0 insertions, 0 deletions