Details
-
Improvement
-
Status: Closed
-
High
-
Resolution: Fixed
-
13.1.0
-
None
-
None
Description
A lot of code in the HST rely on whether the request is a cms request or not, for example
if (requestContext.isCmsRequest()) { hstSite = channelManagerHstSiteProvider.getHstSite(compositeHstSite.getMaster(), compositeHstSite.getBranches(), requestContext); } else { final CustomWebsiteHstSiteProviderService customWebsiteHstSiteProviderService = HippoServiceRegistry.getService(CustomWebsiteHstSiteProviderService.class);
This is however very confusing since version 13.0.0 : For example all HST requests via the platform webapp (/cms) are NOT cms requests! They are just plain HST requests that happen to go over the /cms webapp. What 'isCmsRequest' really means is that an HST Site webapp is hit (for example /site) OVER the host of the CMS : Aka, it is a 'channel manager preview request'!! A channel mgr preview request must for example decorate Mounts to the preview mount. A request over the cms webapp, for example /cms/_rp never needs decorated mounts. Hence, we should deprecate #isCmsRequest and give it a proper name since it is so confusing now and results in bugs because the behavior is different than people expect from the name
Before 13.0.0, there was no confusion since the /cms webapp did not contain the HST
Attachments
Issue Links
- includes
-
CMS-11865 Replace deprecated HstRequestContext#isCmsRequest usages in all community projects
- Closed
- relates to
-
HSTTWO-4556 Master document shown in channel instead of branched document
- Closed
-
CMS-12859 Page Composer requests should be cms (platform) requests and not marked as 'channel manager preview requests'
- Closed
-
ESSCOM-70 Replace the deprecated #isCmsRequest with #isChannelManagerPreviewRequest
- Closed
-
ESSENTIALS-1266 Replace the deprecated #isCmsRequest with #isChannelManagerPreviewRequest
- Closed