-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] website: fix authentication of archived visitor #41220
Closed
dbeguin
wants to merge
1
commit into
odoo:saas-13.1
from
odoo-dev:saas-13.1-fix-visitor-authenticate-and-archiving-dbe
Closed
[FIX] website: fix authentication of archived visitor #41220
dbeguin
wants to merge
1
commit into
odoo:saas-13.1
from
odoo-dev:saas-13.1-fix-visitor-authenticate-and-archiving-dbe
Conversation
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
If a visitor logs in (and has a visitor_id in his cookie), the partner will be linked to the visitor. If, after 1 week, the visitor tries to connect again with a different session (or another visitor_id in cookies), the authenticate will crash because * _cron_archive_visitors applies on visitor inactive since at least a week * there can be only one visitor per partner (sql constraint) * the visitor linked to the partner is not retrieved (because archived) and we try to link the partner to a new visitor. Further than that, if the visitor is archived and the linked partner wants to login again with a new visitor_id, we should * reactivate the previous visitor, * copy history from newest to previous one, * delete the newest one Note that last two points were already done before this commit. Task ID: 2120464 PR odoo#40199 Fixes odoo#40077 Fixes odoo#40301 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
@robodoo r+ |
robodoo
added
merging 👷
and removed
CI 🤖
Robodoo has seen passing statuses
merging 👷
labels
Dec 3, 2019
Staging failed: ci/runbot on adc94fda01c344d60c490015e59de85dac0240e5 (view more at http://runbot.odoo.com/runbot/build/715535) |
@robodoo retry |
robodoo
pushed a commit
that referenced
this pull request
Dec 3, 2019
If a visitor logs in (and has a visitor_id in his cookie), the partner will be linked to the visitor. If, after 1 week, the visitor tries to connect again with a different session (or another visitor_id in cookies), the authenticate will crash because * _cron_archive_visitors applies on visitor inactive since at least a week * there can be only one visitor per partner (sql constraint) * the visitor linked to the partner is not retrieved (because archived) and we try to link the partner to a new visitor. Further than that, if the visitor is archived and the linked partner wants to login again with a new visitor_id, we should * reactivate the previous visitor, * copy history from newest to previous one, * delete the newest one Note that last two points were already done before this commit. Task ID: 2120464 PR #40199 Fixes #40077 Fixes #40301 closes #41220 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
fw-bot
deleted the
saas-13.1-fix-visitor-authenticate-and-archiving-dbe
branch
December 17, 2019 14:47
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If a visitor logs in (and has a visitor_id in his cookie), the partner will be
linked to the visitor. If, after 1 week, the visitor tries to connect again
with a different session (or another visitor_id in cookies), the authenticate
will crash because
we try to link the partner to a new visitor.
Further than that, if the visitor is archived and the linked partner wants to
login again with a new visitor_id, we should
Note that last two points were already done before this commit.
Task ID: 2120464
PR #40199
Fixes #40077
Fixes #40301