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

REST Creating View returns 500 error

    XMLWordPrintable

Details

    Description

      Creating a view is returning 500 error
      Steps to Reproduce

      1. Login to admin interface as admin
      2. Open content struture
      3. Create a new Folder name "News"
      4. Inside News create a an article with name "Article 1" and summary "Summary 1"
      5. Using the REST client create the following request:
        POST: http://ezp5.jp.cleverti.qa.ezpublish.no/api/ezp/v2/content/views
        Accept: application/vnd.ez.api.View+json
        Content-Type: application/vnd.ez.api.ViewInput+json
        Body: {"ViewInput":{"identifier":"some-test-id-1","public":false,"Query":{"Criteria": {"FullTextCriterion":"Article"}

        ,"offset":0,"FacetBuilders":{},"SortClauses":{},"spellcheck":false}}}

      6. Submit

      I get the following error:

      {"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":500,"errorMessage":"Internal Server Error","errorDescription":"None of the chained routers were able to generate route: Route 'ezpublish_rest_loadView' not found","trace":"#0 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Output\/ValueObjectVisitor\/RestExecutedView.php(76): Symfony\\Cmf\\Component\\Routing\\ChainRouter->generate('ezpublish_rest_...', Array)\n#1 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/ValueObjectVisitorDispatcher.php(73): eZ\\Publish\\Core\\REST\\Server\\Output\\ValueObjectVisitor\\RestExecutedView->visit(Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor), Object(eZ\\Publish\\Core\\REST\\Common\\Output\\Generator\\Json), Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#2 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/Visitor.php(142): eZ\\Publish\\Core\\REST\\Common\\Output\\ValueObjectVisitorDispatcher->visit(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#3 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Output\/Visitor.php(104): eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor->visitValueObject(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#4 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/View\/AcceptHeaderVisitorDispatcher.php(60): eZ\\Publish\\Core\\REST\\Common\\Output\\Visitor->visit(Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#5 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Bundle\/EzPublishRestBundle\/EventListener\/ResponseListener.php(60): eZ\\Publish\\Core\\REST\\Server\\View\\AcceptHeaderVisitorDispatcher->dispatch(Object(Symfony\\Component\\HttpFoundation\\Request), Object(eZ\\Publish\\Core\\REST\\Server\\Values\\RestExecutedView))\n#6 [internal function]: eZ\\Bundle\\EzPublishRestBundle\\EventListener\\ResponseListener->onKernelResultView(Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent))\n#7 \/var\/www\/html\/ezpublish5\/ezpublish\/cache\/prod\/classes.php(1796): call_user_func(Array, Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent))\n#8 \/var\/www\/html\/ezpublish5\/ezpublish\/cache\/prod\/classes.php(1729): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'kernel.view', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent))\n#9 \/var\/www\/html\/ezpublish5\/ezpublish\/cache\/prod\/classes.php(1893): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch('kernel.view', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent))\n#10 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(2844): Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch('kernel.view', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseForControllerResultEvent))\n#11 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(2815): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#12 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(2944): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#13 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(2245): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#14 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Bundle\/EzPublishCoreBundle\/Kernel.php(67): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#15 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(472): eZ\\Bundle\\EzPublishCoreBundle\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#16 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Bundle\/FrameworkBundle\/HttpCache\/HttpCache.php(60): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->forward(Object(Symfony\\Component\\HttpFoundation\\Request), true, NULL)\n#17 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(243): Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache->forward(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#18 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(260): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#19 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Bundle\/EzPublishCoreBundle\/HttpCache.php(57): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->invalidate(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#20 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(189): eZ\\Bundle\\EzPublishCoreBundle\\HttpCache->invalidate(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#21 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Bundle\/EzPublishCoreBundle\/HttpCache.php(36): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#22 \/var\/www\/html\/ezpublish5\/web\/index.php(64): eZ\\Bundle\\EzPublishCoreBundle\\HttpCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#23 {main}","file":"\/var\/www\/html\/ezpublish5\/vendor\/symfony-cmf\/routing\/Symfony\/Cmf\/Component\/Routing\/ChainRouter.php","line":246}}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Joao.Pingo-obsolete@ez.no Joao Pingo (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: