Scaffolded Visual Studio Project for SC2025-004 hotfix
Hotfixes are important to fix security vulnerabilities and it is good to apply them as and when Sitecore makes a hotfix release to protect your higher environments from external attacks. There are usually two types of hotfixes. One is plainly called hotfix while the other is cumulative hotfix. Understandably, cumulative hotfix has multiple fixes bundled together. For example, The security bulletin SC2025-004 has 2 hotfixes - one for Sitecore XM/XP as well as another for SXA, which is a cumulative fix. In other words, if you have a Sitecore SXA instance, irrespective of your Sitecore version, you must first apply the Sitecore hotfix and if you have the SXA module, based on your SXA version, you must apply the SXA-related cumulative hotfix on top of the Sitecore hotfix.
There are two methods to apply the hotfix, irrespective of if it is a cumulative or a one-off hotfix.
1. Visual Studio project publish
2. Sitecore package installation
While approach-2 is easier, this approach can't be maintained in a version control system. In other words, you need to maintain a checklist so that the step can be diligently followed in each environment as part of a manual process. On the other hand, Approach-1 could need technical understanding of the package file structure. For instance, the package zip could have Sitecore items and other artifacts like dlls plus config files. While dlls and config files can be published via visual studio, Sitecore items, if part of the package, need to be serialized via Sitecore CLI/TDS/Unicorn and pushed through a branch that can be deployed in higher environments.
For instance, in case of the SXA 10.3.0 cumulative hotfix package, the recommended approach is to install the package on the instance. On the other hand, if you look at the zip file, the ones encircled in red will be deserialized as Sitecore items while the ones under the files folder will be deployed to the web root since they are all config files/dlls or any .aspx files:
In case of 10.4.0 SXA hotfix, there aren't any Sitecore items to be deserialized:
Sitecore 10.4 Visual Studio-based hotfix in Github: Publish just the necessary project(s) based on if you have SXA module installed in your instance!
Reference: https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1003734
Comments
Post a Comment