Breaking Changes in CrafterCMS 4.2.x
This section covers changes that might affect your CrafterCMS projects, as well as other considerations before upgrading. Please review the following and apply changes as required:
CrafterCMS 4.2.x requires Java 21.
See Requirements for more information on CrafterCMS requirements.CrafterCMS 4.2.x now uses Jakarta EE.
Thejakarta.*
namespace is now used instead ofjavax.*
. To update your project, find and replacejavax
withjakarta
in your Groovy code or Java if you are bringing in jars with Grab.
Breaking Changes in CrafterCMS 4.2.2
CrafterCMS uses TinyMCE version 7 for the RTE control. The following properties were removed from the RTE control in CrafterCMS version 4.2.2:
Force Root Block p Tag
This property uses the
forced_root_block
option in TinyMCE to set it to atrue
/false
value. Starting in TinyMCE version 6, this option no-longer accepts thefalse
value or an empty string value. Settingforced_root_block
tofalse
is not compatible with Real-time Collaboration and also blocks various editor functions from working correctly and causes non-semantic HTML to be generated. Newer options are now available for handling line breaks and paragraphs, like the newline_behavior.Force br New Lines
This property uses the
force_br_newlines
option in TinyMCE version 3 and 4. Starting with TinyMCE 5.x, the handling of line breaks and paragraphs became more standardized, and newer options like newline_behavior were introduced to provide greater flexibility for managing line breaks. Theforce_br_newlines
option is no longer actively recommended in newer versions due to potential issues with content formatting and compatibility with modern HTML standards, hence the removal of theForce br New Lines
property.
To customise the new behaviours mentioned above, use the TinyMCE config in the
User Interface Configuration ui.xml
Breaking Changes in CrafterCMS 4.2.0
The following APIs are removed from CrafterCMS 4.1 to 4.2:
/api/1/services/api/1/publish/publish-items.json
/api/1/services/api/1/publish/reset-staging.json
/api/1/services/api/1/dependency/calculate-dependencies.json
/api/1/services/api/1/content/content-exists.json
Below are the APIs that are now removed from CrafterCMS 4.2. Note that most of the APIs in the list has been deprecated in previous versions:
API |
URL |
New API |
---|---|---|
Clear Configuration Cache |
|
|
Get Available Blueprints |
|
|
Get Configuration |
|
|
Write Configuration |
|
|
Add Remote |
|
|
List Remote Repositories |
|
|
Pull From Remote |
|
|
Push To Remote |
|
|
Rebuild Database |
|
|
Remove Remote |
|
|
Get Audit |
|
|
Publish Items |
|
|
Publish Status |
|
|
Reset Staging Publishing Target |
|
|
Get dependencies |
|
|
Get Deployment History |
|
|
Get Scheduled Items |
|
|
Crop Image |
|
|
Set Item State |
|
|
Unlock Content Item |
|
|
Content Exists |
|
|
Get UI Resource Override |
|
|
Transcode |
|
|
AWS S3 Upload |
|
|
MediaConvert |
|
|
Get User Activity |
|
|
Post Activity |
|
|
Copy Item |
|
|
Cut Item |
|
|
Get Items |
|
|
Paste Item |
|
|
Get User Roles |
|
|
Get user permissions for project/site and space (path) |
|
|
Login |
|
|
Logout |
|
|
List WebDAV |
|
|
Upload to WebDAV |
|
|
Create Jobs |
|
|
Get Go Live Items |
|
|
Get Workflow Affected Paths |
|
|
Go Delete |
|
|
Go Live |
|
|
Reject |
|
|
Request Publishing |
|
|
Calculate Dependencies |
|
Upgrading 3.1.x Sites
MongoDB in CrafterCMS Social and Profile has been updated. To upgrade MongoDB in your installation, see Upgrading MongoDB
CrafterCMS 4.1.x onward requires Git.
See Requirements for more information on CrafterCMS requirements.CrafterCMS 4.1.x onward has a new Studio UI. To get the same Sidebar you’re used to, update the User Interface Configuration
Update ICE to move to XB
Studio and Engine SAML configuration now uses a key and certificate for configuration instead of using keystore.
See Engine SAML2 Configuration and Studio SAML2 Configuration for more information.