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

Empty Document Element in XmlText FieldType default data

    XMLWordPrintable

Details

    • Ventoux Sprint 6

    Description

      When content types are created with public API, XMLText field types get a default value (an empty section element).

      When creating content of one of this types without setting a value for an XMLText field, the following error is sometimes thrown :

      Warning: eZ\Publish\Core\FieldType\XmlText\Type::isEmptyValue(): Invalid State Error

      What happens is type class gets initialized with default value, a DomDocument with no documentElement.

      I thought it was caused by the fact that DomDocument is not serializable when retreiving content types' field definitions from cache and tried to make FieldType\XmlText\Value implement \Serializable interface but it did not fix it...

      Attachments

        Activity

          People

            Unassigned Unassigned
            bchoquet bchoquet
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2 hours, 30 minutes
                2h 30m
                Remaining:
                Time Spent - 1 hour, 30 minutes Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 1 hour, 30 minutes Remaining Estimate - 1 hour
                1h 30m