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

Missing config for Null type FieldTypes causes exceptions

    Details

      Description

      FieldTypes that are included in eZDemo package but not implemented yet are missing Null Type yml config:

      • ezmbpaex
      • ezcomments
      • ezmatrix
      • Shop types
      • ??

      This is needed to make sure REST and Public API does not trow exceptions when dealing with content having these fieldtypes.

        Issue Links

          Activity

          Hide
          Pedro Resende (Inactive) added a comment -

          André Rømcke: While testing re-running one of the tests I've made last Friday I keep getting the following error that wasn't present:

          1) eZPublishAPIEzp19923::testTC1484MissingConfigForNullTypeFieldTypesCausesExceptionsBase
          eZ\Publish\Core\Base\Exceptions\NotFoundException: Could not find 'FieldType' with identifier 'Provided $identifier is unknown: 'ezsubtreesubscription', has: array (
            0 => 'ezcomcomments',
            1 => 'ezpackage',
            2 => 'ezinisetting',
            3 => 'ezdate',
            4 => 'ezenum',
            5 => 'ezidentifier',
            6 => 'ezisbn',
            7 => 'ezmatrix',
            8 => 'ezmultioption',
            9 => 'ezmultioption2',
            10 => 'ezmultiprice',
            11 => 'ezproductcategory',
            12 => 'ezrangeoption',
            13 => 'eztime',
            14 => 'ezprice',
            15 => 'ezpaex',
            16 => 'eztags',
            17 => 'ezsurvey',
            18 => 'ezauthor',
            19 => 'ezbinaryfile',
            20 => 'ezboolean',
            21 => 'ezdatetime',
            22 => 'ezemail',
            23 => 'ezfloat',
            24 => 'ezimage',
            25 => 'ezpage',
            26 => 'ezgmaplocation',
            27 => 'ezinteger',
            28 => 'ezkeyword',
            29 => 'ezmedia',
            30 => 'ezobjectrelation',
            31 => 'ezobjectrelationlist',
            32 => 'ezsrrating',
            33 => 'ezselection',
            34 => 'eztext',
            35 => 'ezstring',
            36 => 'ezurl',
            37 => 'ezuser',
            38 => 'ezxmltext',
            39 => 'ezcountry',
          )'
           
          /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/FieldTypeService.php:131
          /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:755
          /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:717
          /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:818
          /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php:1800
          /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php:996
          /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/ContentService.php:312
          /var/www/apache2php53/ezp/ezpublish_testsystem/extension/ezpublishapitests/classes/ezpublishapitesthelper.php:810
          /var/www/apache2php53/ezp/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/kanban/ezp19923/ezpublishapiezp19923.php:29
          /var/www/apache2php53/ezp/ezpublish_testsystem/extension/selenium/classes/ezpselenesetest.php:724
          /var/www/apache2php53/ezp/ezpublish_testsystem/extension/ezpublishapitests/classes/ezpublishapitest.php:116
          /var/www/apache2php53/ezp/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/kanban/ezp19923/ezpublishapiezp19923.php:20
          /var/www/apache2php53/ezp/ezpublish_testsystem/extension/selenium/classes/ezpselenesetest.php:753
          /var/www/apache2php53/ezp/ezpublish_testsystem/tests/toolkit/ezptestrunner.php:372

          And the ezsubtreesubscription fieldtype is defined in the "/vendor/ezsystems/ezpublish/eZ/Publish/Core/settings/service.ini"

          [legacy_converter_registry]
          arguments[map][ezsubtreesubscription]=eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Integer::create

          and

          [field_type]
          [ezsubtreesubscription:field_type]
          class=eZ\Publish\Core\FieldType\Null\Type
          arguments[fieldTypeIdentifier]=ezsubtreesubscription

          Show
          Pedro Resende (Inactive) added a comment - André Rømcke : While testing re-running one of the tests I've made last Friday I keep getting the following error that wasn't present: 1) eZPublishAPIEzp19923::testTC1484MissingConfigForNullTypeFieldTypesCausesExceptionsBase eZ\Publish\Core\Base\Exceptions\NotFoundException: Could not find 'FieldType' with identifier 'Provided $identifier is unknown: 'ezsubtreesubscription', has: array ( 0 => 'ezcomcomments', 1 => 'ezpackage', 2 => 'ezinisetting', 3 => 'ezdate', 4 => 'ezenum', 5 => 'ezidentifier', 6 => 'ezisbn', 7 => 'ezmatrix', 8 => 'ezmultioption', 9 => 'ezmultioption2', 10 => 'ezmultiprice', 11 => 'ezproductcategory', 12 => 'ezrangeoption', 13 => 'eztime', 14 => 'ezprice', 15 => 'ezpaex', 16 => 'eztags', 17 => 'ezsurvey', 18 => 'ezauthor', 19 => 'ezbinaryfile', 20 => 'ezboolean', 21 => 'ezdatetime', 22 => 'ezemail', 23 => 'ezfloat', 24 => 'ezimage', 25 => 'ezpage', 26 => 'ezgmaplocation', 27 => 'ezinteger', 28 => 'ezkeyword', 29 => 'ezmedia', 30 => 'ezobjectrelation', 31 => 'ezobjectrelationlist', 32 => 'ezsrrating', 33 => 'ezselection', 34 => 'eztext', 35 => 'ezstring', 36 => 'ezurl', 37 => 'ezuser', 38 => 'ezxmltext', 39 => 'ezcountry', )'   /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/FieldTypeService.php:131 /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:755 /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:717 /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentTypeService.php:818 /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php:1800 /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/ContentService.php:996 /var/www/apache2php53/ezp/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/SignalSlot/ContentService.php:312 /var/www/apache2php53/ezp/ezpublish_testsystem/extension/ezpublishapitests/classes/ezpublishapitesthelper.php:810 /var/www/apache2php53/ezp/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/kanban/ezp19923/ezpublishapiezp19923.php:29 /var/www/apache2php53/ezp/ezpublish_testsystem/extension/selenium/classes/ezpselenesetest.php:724 /var/www/apache2php53/ezp/ezpublish_testsystem/extension/ezpublishapitests/classes/ezpublishapitest.php:116 /var/www/apache2php53/ezp/ezpublish_testsystem/extension/ezpublishapitests/tests/ezpublishapi/ezpublishapi/kanban/ezp19923/ezpublishapiezp19923.php:20 /var/www/apache2php53/ezp/ezpublish_testsystem/extension/selenium/classes/ezpselenesetest.php:753 /var/www/apache2php53/ezp/ezpublish_testsystem/tests/toolkit/ezptestrunner.php:372 And the ezsubtreesubscription fieldtype is defined in the "/vendor/ezsystems/ezpublish/eZ/Publish/Core/settings/service.ini" [legacy_converter_registry] arguments[map][ezsubtreesubscription]=eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\Integer::create and [field_type] [ezsubtreesubscription:field_type] class=eZ\Publish\Core\FieldType\Null\Type arguments[fieldTypeIdentifier]=ezsubtreesubscription
          Hide
          André Rømcke added a comment -

          Looks like you have placed it in the wrong place, possible fix here:

          https://github.com/ezsystems/ezpublish-kernel/commit/85906842c2cf6b2f338665b2a81f2e1f2326b837

          Show
          André Rømcke added a comment - Looks like you have placed it in the wrong place, possible fix here: https://github.com/ezsystems/ezpublish-kernel/commit/85906842c2cf6b2f338665b2a81f2e1f2326b837
          Hide
          Pedro Resende (Inactive) added a comment -

          André Rømcke: I found a typoo in my previous commit here is the pr

          https://github.com/ezsystems/ezpublish-kernel/pull/240

          Show
          Pedro Resende (Inactive) added a comment - André Rømcke : I found a typoo in my previous commit here is the pr https://github.com/ezsystems/ezpublish-kernel/pull/240
          Show
          André Rømcke added a comment - That is not part of your commit, and it's not a typo, ref: https://github.com/ezsystems/ezcomments/blob/master/packages/ezcomments_extension/ezextension/ezcomments/datatypes/ezcomcomments/ezcomcommentstype.php#L12
          Hide
          Pedro Resende (Inactive) added a comment -

          André Rømcke: You're right, sorry about the bad pr

          Show
          Pedro Resende (Inactive) added a comment - André Rømcke : You're right, sorry about the bad pr

            People

            • Assignee:
              Unassigned
              Reporter:
              André Rømcke
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 2 hours
                1w 2h