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

Inconsistent Image Loading When Switching Between Preview,Live,Edit Modes #31362

Open
fabrizzio-dotCMS opened this issue Feb 12, 2025 · 1 comment · Fixed by #31408
Open

Inconsistent Image Loading When Switching Between Preview,Live,Edit Modes #31362

fabrizzio-dotCMS opened this issue Feb 12, 2025 · 1 comment · Fixed by #31408

Comments

@fabrizzio-dotCMS
Copy link
Contributor

fabrizzio-dotCMS commented Feb 12, 2025

Parent Issue

#30991 (comment)

Problem Statement

content returned by the API reflects the selected mode. However, there is an issue where images are sometimes displayed from a previously selected mode instead of the current one.

This suggests a race condition or incorrect execution order when setting the session variable that defines the active page mode. As a result, when switching modes:
• Images may load from the previously viewed mode instead of the current one.
• A user switching to Live Mode may still see an image from Working Mode if they had previously viewed that mode.
• Conversely, when switching to Working Mode, an image from Live Mode might still be displayed.

This behavior indicates that the API calls responsible for setting the session variable for the page mode might not be executed in the correct sequence or may be experiencing delays that lead to inconsistent caching or session states.
See:

TM-cache.mov

Steps to Reproduce

1.	Open the page preview tool.
2.	Select Live Mode and observe the displayed images.
3.	Switch to Working Mode.
4.	Observe that some images might still be loaded from Live Mode instead of the expected Working Mode.
5.	Repeat the process switching between different modes (Draft, Edit, etc.).
6.	In some cases, images do not immediately reflect the newly selected mode but rather the previously viewed one.

Acceptance Criteria

Images should always load according to the currently selected preview mode.
• There should be no persistence of images from previously viewed modes.
• Switching modes should trigger a clear update of the images.

dotCMS Version

current trunk

Proposed Objective

User Experience

Proposed Priority

Priority 1 - Show Stopper

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

fabrizzio-dotCMS added a commit that referenced this issue Feb 14, 2025
fabrizzio-dotCMS added a commit that referenced this issue Feb 17, 2025
@fabrizzio-dotCMS fabrizzio-dotCMS linked a pull request Feb 17, 2025 that will close this issue
fabrizzio-dotCMS added a commit that referenced this issue Feb 18, 2025
@fabrizzio-dotCMS fabrizzio-dotCMS pinned this issue Feb 18, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in dotCMS - Product Planning Feb 18, 2025
@github-project-automation github-project-automation bot moved this from Done to Current Sprint Backlog in dotCMS - Product Planning Feb 18, 2025
@fabrizzio-dotCMS fabrizzio-dotCMS removed their assignment Feb 18, 2025
@fabrizzio-dotCMS fabrizzio-dotCMS moved this from Current Sprint Backlog to In Review in dotCMS - Product Planning Feb 18, 2025
@nollymar nollymar moved this from In Review to QA in dotCMS - Product Planning Feb 19, 2025
@nollymar nollymar removed the Triage label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: QA
Development

Successfully merging a pull request may close this issue.

2 participants