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

fix(Page) Working/Live Images loading inconsistenly Refs: 31362 #31408

Merged
merged 12 commits into from
Feb 18, 2025

Conversation

fabrizzio-dotCMS
Copy link
Contributor

@fabrizzio-dotCMS fabrizzio-dotCMS commented Feb 18, 2025

Proposed Changes

  • Fix setting incorrect PageMode on VelocityServlet.
  • When switching to LIVE an incoming request to the Velocity servlet was changing the PageMode at the session level to PREVIEW_MODE, causing a weird behavior when switching images
  • BinaryExportServlet isn't supposed to cache images for the admin, however, it was doing it, because of a condition like.
    if(!isAdmin) {serve the image with cache} else { do not use cache to serve the image}
    The general rule is if we're in admin mode we do not serve images using cache. The bug was that when serving content in LIVE mode from within the UVE it would assume we were not on admin therefore the images would stay in cache

This PR fixes: #31362

Copy link

Please use a Conventional Commit title format for this PR. For more information, see https://www.conventionalcommits.org/en/v1.0.0/

@fabrizzio-dotCMS fabrizzio-dotCMS marked this pull request as ready for review February 18, 2025 15:20
@dotCMS dotCMS deleted a comment from mergify bot Feb 18, 2025
Copy link
Contributor

@jdotcms jdotcms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change, I have just approved, take a look to the comment I have left

@fabrizzio-dotCMS fabrizzio-dotCMS added this pull request to the merge queue Feb 18, 2025
Merged via the queue into main with commit fa25e53 Feb 18, 2025
36 checks passed
@fabrizzio-dotCMS fabrizzio-dotCMS deleted the issue-31362-inconsisten-imagez branch February 18, 2025 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent Image Loading When Switching Between Preview,Live,Edit Modes
3 participants