Optimizely - update 450

Release summary

New features for Optimizely Content Management System (CMS) and Optimizely TinyMCE. Bug fixes for Optimizely Content Management System (CMS) and Optimizely TinyMCE.

Released items April 18, 2023

Area ID Type Description Released
CMS-27037 star
chevron_right Add Length validation for ContentArea property

Length validation for ContentArea property is supported.

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26801
chevron_right CD GET does not return list block value in ContentArea inlineBlock

Fixed an issue where the CD GET did not return a list block value in ContentArea inlineBlock.

Steps to reproduce:

1. Call Content Definition API to create a block type BlockWithListBlockAndInteger, properties BlockList and Interger (or any property type)

{
    "name": "BlockWithListBlockAndInteger",
    "baseType": "Block",
    "properties": [
        {
            "name": "BlockList",
            "dataType": "PropertyCollection",
            "itemType": "EditorialBlock",
            "branchSpecific": false,
            "editSettings": {
                "visibility": "default",
                "displayName": "BlockList",
                "groupName": "Information",
                "sortOrder": 0
            }
        },
        {
            "name": "PropInteger",
            "dataType": "PropertyNumber",
            "branchSpecific": false,
            "editSettings": {
                "visibility": "default",
                "displayName": "PropInteger",
                "groupName": "Information",
                "sortOrder": 0
            }
        }
    ]
}

 2. Call Content Management API to create a ProductPage content, ContentArea has inlineBlock is BlockWithListBlockAndInteger

{
    "language": {
        "name": "sv"
    },
    "name": "InlineBlock_Page",
    "contentType": [
        "Block",
        "ProductPage"
    ],
    "parentLink": {
        "id": {{testContainerPageId}}
    },
    "status": "Published",
    "UniqueSellingPoints": {
        "value": [
            "1"
        ]
    },
    "RelatedContentArea": {
        "value": [
            {
                "displayOption": "wide",
                "tag": null,
                "inlineBlock": {
                    "contentType": [
                        "Block",
                        "BlockWithListBlockAndInteger"
                    ],
                    "blockList": {
                        "value": [
                            {
                                "name": "BlockList",
                                "propertyDataType": "PropertyBlock",
                                "propertyItemType": "EditorialBlock",
                                "mainBody": {
                                    "value": "EditorialBlock mainbody",
                                    "propertyDataType": "PropertyXhtmlString"
                                }
                            }
                        ],
                        "propertyDataType": "PropertyCollection",
                        "propertyItemType": "PropertyBlock"
                    },
                    "propInteger": {
                        "value": 1,
                        "propertyDataType": "PropertyNumber"
                    }
                }
            }
        ],
        "propertyDataType": "PropertyContentArea"
    }
}

3. Call Content Management API GET to get content in step 2

  • Observed result: The inlineBlock is correct as input
"inlineBlock": {
                    "contentType": [
                        "Block",
                        "BlockWithListBlockAndInteger"
                    ],
                    "blockList": {
                        "value": [
                            {
                                "name": "BlockList",
                                "propertyDataType": "PropertyBlock",
                                "propertyItemType": "EditorialBlock",
                                "mainBody": {
                                    "value": "EditorialBlock mainbody",
                                    "propertyDataType": "PropertyXhtmlString"
                                }
                            }
                        ],
                        "propertyDataType": "PropertyCollection",
                        "propertyItemType": "PropertyBlock"
                    },
                    "propInteger": {
                        "value": 1,
                        "propertyDataType": "PropertyNumber"
                    }
                }

4. Call Content Definition API GET to get content in step 2

  • Expected result: InlineBlock is same as result in step 3
  • Actual result: InlineBlock has blockList value is []
"inlineBlock": {
                    "contentType": [
                        "Block",
                        "BlockWithListBlockAndInteger"
                    ],
                    "blockList": {
                        "value": [],
                        "propertyDataType": "PropertyCollection",
                        "propertyItemType": "PropertyBlock"
                    },
                    "propInteger": {
                        "value": 1,
                        "propertyDataType": "PropertyNumber"
                    }
                }
EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26933
chevron_right ContentRepository.TryGet throws NullReferenceException when passed non-registered language

Fixed an issue where passing a valid, but non registered language to ContentRepository.TryGet resulted in a NullReferenceException. The method should return false, and the out parameter should be null.

For example:

_contentRepository.TryGet(contentLink, CultureInfo.GetCultureInfo("en-NF"), out _);

 

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26591 star
chevron_right ContentTypes: (CMS) Allowed types validation

You can use IPropertyValidationSettingsRepository to define allowed types validation .

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26716
chevron_right Return 500 when calling CMA to create page if page type has Url property which uses wrong namespace

Fixed an incorrect 500 error: Unable to cast object of type EPiServer.Url to type System.Security.Policy.Url that should have returned 400 to say that the System.Security.Policy.Url property is not supported.

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26329
chevron_right EPiNumberOfVisits cookie is deleted if there are more than one Number of Visits criteria

Fixed an issue that caused EPiNumberOfVisits cookie to be deleted if there were more than one criteria on Number of Visits.

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26457 star
chevron_right CMS: Add type to RegularExpressionValidationSettings

Added an optional type identifier RegularExpressionValidationSettings to specify if the regular expression should be interpreted as ECMA script or .NET. 

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26196
chevron_right Expired Page still show when StrictLanguageRouting = false

Fixed an issue where an expired page still showed when StrictLanguageRouting = false.

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26161 star
chevron_right Validate setting-based property validation

Validators (such as LengthPropertyValidator) may be activated (if configured) to validate property data after content data is sent to the back-end, and the validators validate property in line with settings provided by developers (such as  LengthValidationSettings).

Several types of settings are handled by developers only and Optimizely stores them in the database without any validation, even though data could be wrong (such as maximum < minimum). To make validation consistent and valid, Optimizely handles the validation of validator settings before saving them.

  • Maximum and Minimum may not be null at the same time.
  • Maximum should be greater than Minimum
  • For RegularExpressionValidationSettings and ItemRegularExpressionValidationSettings, the pattern used in validation process may not be null or empty.

These rules apply to the following:

  • LengthValidationSettings
  • RangeDateValidationSettings
  • RangeFloatNumberValidationSettings
  • RangeNumberValidationSettings
  • ItemLengthValidationSettings
  • ItemRangeDateValidationSettings
  • ItemRangeFloatNumberValidationSettings
  • ItemRangeNumberValidationSettings

 

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26453 star
chevron_right CMS: Add Saved property to PropertyValidationSettingsBase

Added a Saved property to PropertyValidationSettingsBase that informs when the setting was last modified.

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26893
chevron_right Could not convert page from one type to another

Fixed an issue where you could not convert a page from one page type to another.

EPiServer.CMS.Core 12.14.0; (Or a related package);
Apr 18, 2023
CMS-26945
chevron_right [TinyMCE] Support new editor options API

Added support for TinyMCE EditorOptions API:
https://www.tiny.cloud/docs/tinymce/6/apis/tinymce.editoroptions/
You can now register a custom setting as TinyMCE editor option on the server.

EPiServer.CMS.TinyMce 4.2.0; (Or a related package);
Apr 18, 2023

Other product release notes

Related topics

Last updated: Apr 18, 2023