You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### 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
Copy file name to clipboardExpand all lines: dotCMS/src/main/java/com/dotmarketing/portlets/htmlpageasset/business/render/HTMLPageAssetRenderedAPIImpl.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,7 @@ public PageView getPageRendered(
// Sometimes when The PageMode flag is LIVE, and we are serving a live view of the page from within the admin tool we might end up caching images that we shouldn't
Copy file name to clipboardExpand all lines: dotcms-integration/src/test/java/com/dotcms/rendering/velocity/servlet/VelocityServletIntegrationTest.java
0 commit comments