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

Fatal error when creating content type without "names" attribute

    Details

      Description

      Creating a content type through the API without defining the "names" attribute throws the following error:

      PHP Catchable fatal error:  Argument 1 passed to eZ\Publish\Core\Persistence\Legacy\Content\Language\MaskGenerator::generateLanguageMask() must be an array, null given, called in /var/www/ezp5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Type/Gateway/EzcDatabase.php on line 398 and defined in /var/www/ezp5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Persistence/Legacy/Content/Language/MaskGenerator.php on line 43
      

      Script: https://gist.github.com/MarcosLoureiro/fcb217f5a1dfa31684f1

        Issue Links

          Activity

          Show
          Petar Spanja (Inactive) added a comment - Pull request: https://github.com/ezsystems/ezpublish-kernel/pull/517
          Show
          Petar Spanja (Inactive) added a comment - Merged in ezpublish-kernel/master: https://github.com/ezsystems/ezpublish-kernel/commit/62a775d75fe267610963909aa64e10c1d19a5be4
          Hide
          Joao Pingo (Inactive) added a comment -

          Created Test Case tc-1815 for the mentioned issue
          Created Test Case tc-1816 to test the issue in Marcos comment
          Both test passed ... QA Approved

          Show
          Joao Pingo (Inactive) added a comment - Created Test Case tc-1815 for the mentioned issue Created Test Case tc-1816 to test the issue in Marcos comment Both test passed ... QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Marcos Loureiro (Inactive)
            • 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 day, 6 hours, 40 minutes
                1d 6h 40m