Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2867

Date Based Publisher REST API doen't work

    XMLWordPrintable

Details

    Description

      Service date_based_publisher.controller.datebasedpublisher should be public.

      Steps to reproduce:

      Do any REST request to DBP e.g.

      PATCH http://127.0.0.1:8000/api/datebasedpublisher/v1/content/objects/56/versions/2/schedule/1565107200
      Accept: application/json
      Cookie: eZSESSID98defd6ee70dfb1dea416cecdf391f58=njnmds98f7i59sjn4k9mvmdobu
      X-CSRF-Token: OL-lyuM7A0kC03K2l5MZqTFW6WY-QJukEoTY5CsMTxI
      

      will return the following response

      {
        "ErrorMessage": {
          "_media-type": "application\/vnd.ez.api.ErrorMessage+json",
          "errorCode": 500,
          "errorMessage": "Internal Server Error",
          "errorDescription": "No visitor found for Error!",
          "trace": "#0 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/ezsystems\/ezplatform-rest\/src\/lib\/Output\/Visitor.php(140): EzSystems\\EzPlatformRest\\Output\\ValueObjectVisitorDispatcher->visit(Object(Error))\n#1 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/ezsystems\/ezplatform-rest\/src\/lib\/Server\/Output\/ValueObjectVisitor\/Exception.php(140): EzSystems\\EzPlatformRest\\Output\\Visitor->visitValueObject(Object(Error))\n#2 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/ezsystems\/ezplatform-rest\/src\/lib\/Output\/ValueObjectVisitorDispatcher.php(67): EzSystems\\EzPlatformRest\\Server\\Output\\ValueObjectVisitor\\Exception->visit(Object(EzSystems\\EzPlatformRest\\Output\\Visitor), Object(EzSystems\\EzPlatformRest\\Output\\Generator\\Json), Object(InvalidArgumentException))\n#3 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/ezsystems\/ezplatform-rest\/src\/lib\/Output\/Visitor.php(140): EzSystems\\EzPlatformRest\\Output\\ValueObjectVisitorDispatcher->visit(Object(InvalidArgumentException))\n#4 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/ezsystems\/ezplatform-rest\/src\/lib\/Output\/Visitor.php(100): EzSystems\\EzPlatformRest\\Output\\Visitor->visitValueObject(Object(InvalidArgumentException))\n#5 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/ezsystems\/ezplatform-rest\/src\/lib\/Server\/View\/AcceptHeaderVisitorDispatcher.php(54): EzSystems\\EzPlatformRest\\Output\\Visitor->visit(Object(InvalidArgumentException))\n#6 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/ezsystems\/ezplatform-rest\/src\/bundle\/EventListener\/ResponseListener.php(79): EzSystems\\EzPlatformRest\\Server\\View\\AcceptHeaderVisitorDispatcher->dispatch(Object(Symfony\\Component\\HttpFoundation\\Request), Object(InvalidArgumentException))\n#7 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/symfony\/event-dispatcher\/Debug\/WrappedListener.php(126): EzSystems\\EzPlatformRestBundle\\EventListener\\ResponseListener->onKernelExceptionView(Object(Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent), 'kernel.exceptio...', Object(Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher))\n#8 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php(258): Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener->__invoke(Object(Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent), 'kernel.exceptio...', Object(Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher))\n#9 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php(233): Symfony\\Component\\EventDispatcher\\EventDispatcher->doDispatch(Array, 'kernel.exceptio...', Object(Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent))\n#10 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php(73): Symfony\\Component\\EventDispatcher\\EventDispatcher->callListeners(Array, 'kernel.exceptio...', Object(Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent))\n#11 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/symfony\/event-dispatcher\/Debug\/TraceableEventDispatcher.php(168): Symfony\\Component\\EventDispatcher\\EventDispatcher->dispatch(Object(Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent), 'kernel.exceptio...')\n#12 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/symfony\/http-kernel\/HttpKernel.php(222): Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher->dispatch(Object(Symfony\\Component\\HttpKernel\\Event\\ExceptionEvent), 'kernel.exceptio...')\n#13 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/symfony\/http-kernel\/HttpKernel.php(79): Symfony\\Component\\HttpKernel\\HttpKernel->handleException(Object(InvalidArgumentException), Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#14 \/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/symfony\/http-kernel\/Kernel.php(198): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#15 \/Users\/awojs\/eZ\/ezplatform-ee-master\/public\/index.php(54): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#16 {main}",
          "file": "\/Users\/awojs\/eZ\/ezplatform-ee-master\/vendor\/ezsystems\/ezplatform-rest\/src\/lib\/Output\/ValueObjectVisitorDispatcher.php",
          "line": 71
        }
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            adam.wojs@ibexa.co Adam Wójs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: