Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
EPiServer.CMS.Core 11.20.5
Jan 07, 2021
Feb 23, 2021
CMS Core
Closed, Fixed and tested
Steps to reproduce:
Define a content type via Definitions Api.
Note: A "regularExpression" validation is added to a string property but its pattern is invalid. For example, "pattern": "[0-9]++"
{ "name": "PageRegExValidationInvalidCase3", "baseType": "Page", "editSettings": { "available": true, "order": 0 }, "properties": [ { "name": "String1", "dataType": "PropertyString", "validation": [ { "name": "RegularExpression", "severity": "error", "pattern": "[0-9]++", "errorMessage": "String 1: pattern is invalid" } ] }, { "name": "StringList1", "dataType": "PropertyStringList", "validation": [ { "name": "itemRegularExpression", "severity": "error", "pattern": "[0-9]++", "errorMessage": "String List 1: pattern is invalid" } ] } ] }
Expected result:
Content management is created with invalid pattern return 400- Bad Request.
Actual result:
Content type is created with invalid pattern.
Content management is created with invalid pattern return 500.