Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25743

XmlText FieldType update fails validation (unknown tag preset)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.3.8, 5.4.6
    • Fix Version/s: Customer request, 5.4.7
    • Component/s: Field types
    • Labels:
      None

      Description

      After creating/editing a ContentType with an XmlText fieldType in legacy, updating the fieldtype definition through the API fails with the following exception message:

        [eZ\Publish\Core\Base\Exceptions\ContentTypeFieldDefinitionValidationException]
        ContentType FieldDefinitions did not validate
      

      The problem appears to be related to the tagPreset validation:

       object(eZ\Publish\Core\FieldType\ValidationError)#11617 (3) {
          ["singular":protected]=>
          string(44) "Setting '%setting%' is of unknown tag preset"
          ["plural":protected]=>
          NULL
          ["values":protected]=>
          array(1) {
            ["setting"]=>
            string(9) "tagPreset"
          }
        }
      
      Steps to reproduce:
      • Create a contentType (test) with an Xml field (body)
      • Update the contentType's fieldType to change the description, for example (see linked gist)
                $fieldDefinition = $contentType->getFieldDefinition('body');
                $updateStruct = $contentTypeService->newFieldDefinitionUpdateStruct();
                $updateStruct->descriptions = array('eng-GB' => 'Body');
        

      gist: https://gist.github.com/joaoinacio/de4492f763de8fd8441ef7e75aa8f218

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: