Skip to content
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

[FW][FIX] base, website: include inherit_branding_auto in t-cache keys #156081

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 1, 2024

When QWeb templates became cached and compiled in 1, the list of default cache key elements did not contain inherit_branding_auto (but it included the old inherit_branding).

Because of this the cache was shared between restricted editors and public users, which could lead to problems such as missing the branding on edited fields.

Steps to reproduce:

  • Use a single browser instance and do not log any user out.
  • Start with website_sale.
  • Make "demo" user a restricted editor and a sales administrator.
  • Connect on 127.0.0.1 as "demo" and go to a product website page.
  • Go to 127.0.0.2 as a visitor and go to the same product page.

=> The product name field of the visitor page was branded.

If you swap the last two steps, the "demo" user's page lacks the branding.

task-3482439

Forward-Port-Of: #155264

When QWeb templates became cached and compiled in [1], the list of
default cache key elements did not contain `inherit_branding_auto`
(but it included the old `inherit_branding`).

Because of this the cache was shared between restricted editors and
public users, which could lead to problems such as missing the branding
on edited fields.

Steps to reproduce:
- Use a single browser instance and do not log any user out.
- Start with `website_sale`.
- Make "demo" user a restricted editor and a sales administrator.
- Connect on 127.0.0.1 as "demo" and go to a product website page.
- Go to 127.0.0.2 as a visitor and go to the same product page.

=> The product name field of the visitor page was branded.

If you swap the last two steps, the "demo" user's page lacks the
branding.

[1]: odoo@7ede9bc

task-3482439

X-original-commit: 8218880
@robodoo
Copy link
Contributor

robodoo commented Mar 1, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 1, 2024

This PR targets saas-16.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 1, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label Mar 1, 2024
robodoo pushed a commit that referenced this pull request Mar 1, 2024
When QWeb templates became cached and compiled in [1], the list of
default cache key elements did not contain `inherit_branding_auto`
(but it included the old `inherit_branding`).

Because of this the cache was shared between restricted editors and
public users, which could lead to problems such as missing the branding
on edited fields.

Steps to reproduce:
- Use a single browser instance and do not log any user out.
- Start with `website_sale`.
- Make "demo" user a restricted editor and a sales administrator.
- Connect on 127.0.0.1 as "demo" and go to a product website page.
- Go to 127.0.0.2 as a visitor and go to the same product page.

=> The product name field of the visitor page was branded.

If you swap the last two steps, the "demo" user's page lacks the
branding.

[1]: 7ede9bc

task-3482439

closes #156081

X-original-commit: 8218880
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
@robodoo robodoo closed this Mar 1, 2024
@fw-bot fw-bot deleted the saas-16.1-16.0-fix_public_cache-bso-voK7-fw branch March 15, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants