percussion / percussioncms

Percussion CMS - Content Management System
https://percussioncmshelp.intsof.com/percussioncms
Apache License 2.0
12 stars 9 forks source link

Create Page From Template Fails if meta description is longer than 500 characters #1215

Closed natechadwick closed 8 months ago

natechadwick commented 8 months ago

Describe the bug

If an imported page has a meta description that has longer than 500 characters, the Design->Create Template From Page feature fails with a UI hang and a 500 error message in the JavaScript console. The server log has the following:

2024-02-21 14:17:16,020 ERROR [Server] PSRuntimeExceptionMapper exception mapper mapped exception: There was an unexpected error creating the new template from the page. C:com.percussion.sitemanage.service.impl.PSSiteTemplateService:L:451

The problem seems to be because the Page content type has a CLOB data type for the DESCRIPTION but the Page Template content type has the field configured as a varchar 500.

The template type should be updated to match the page data type to support longer meta descriptions.