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

[Matrix] 500 when publishing empty, non-required matrix

    XMLWordPrintable

    Details

      Description

      Prerequisites

      A content type with non-required ezmatrix field, with minimum number of rows set to 1.

      Steps

      1. start creating content item
      2. fill other fields, leave matrix empty
      3. click publish

      Expected result

      Content published with empty matrix

      Actual Result

      Error 500

      eZ\Publish\Core\Base\Exceptions\ContentFieldValidationException: Content fields did not validate
      
      Symfony\Component\HttpKernel\Exception\
      HttpException
      in vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/ExceptionListener.php (line 57)
      ExceptionListener->onKernelException(object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
      in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line 115)
      WrappedListener->__invoke(object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))
      in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 212)
      EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(GetResponseForExceptionEvent))
      in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 44)
      EventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent))
      in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line 143)
      TraceableEventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent))
      in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 228)
      HttpKernel->handleException(object(ContentFieldValidationException), object(Request), 1)
      in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 79)
      HttpKernel->handle(object(Request), 1, true)
      in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)
      Kernel->handle(object(Request), 1, true)
      in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/SubRequestHandler.php (line 102)
      SubRequestHandler::handle(object(AppKernel), object(Request), 1, true)
      in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php (line 448)
      HttpCache->forward(object(Request), true, null)
      in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php (line 57)
      HttpCache->forward(object(Request), true)
      in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php (line 238)
      HttpCache->pass(object(Request), true)
      in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php (line 255)
      HttpCache->invalidate(object(Request), true)
      in vendor/friendsofsymfony/http-cache-bundle/SymfonyCache/EventDispatchingHttpCache.php (line 161)
      EventDispatchingHttpCache->invalidate(object(Request), true)
      in vendor/ezsystems/ezplatform-http-cache/src/AppCache.php (line 60)
      AppCache->invalidate(object(Request), true)
      in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php (line 181)
      HttpCache->handle(object(Request), 1, true)
      in vendor/friendsofsymfony/http-cache-bundle/SymfonyCache/EventDispatchingHttpCache.php (line 122)
      EventDispatchingHttpCache->handle(object(Request), 1, true)
      in vendor/ezsystems/ezplatform-http-cache/src/AppCache.php (line 36)
      AppCache->handle(object(Request))
      in web/app.php (line 60)
      // SEE: https://symfony.com/doc/3.4/deployment/proxies.htmlif ($trustedProxies = getenv('SYMFONY_TRUSTED_PROXIES')) {    Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL);}$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            maciej.tyrala@ez.no Maciej TyraƂa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: