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

"Missing form token from Request" when trying to vote a poll from a block poll with a logged user

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.3-dev, 2014.03
    • Component/s: DemoBundle
    • Labels:
      None
    • Environment:

      Operating System: CentOS 6.5 x64
      PHP Version: 5.3.3
      Database and version: Mysql 5.1.73
      Browser (and version): Firefox 28

      Description

      Hi,
      In eZ Demo, when i try to vote on a poll, from a poll block, with a logged in user,

      • Create a poll
      • Add a poll block to frontpage with the created poll (the issue didn't happen if i try to vote the poll without being inside a poll block)
      • Login as admin
      • Vote in the poll

      i have the following error:

       Missing form token from Request
      500 Internal Server Error - Exception 
      

      The stack trace:

      [1] Exception: Missing form token from Request
          at n/a
              in /var/www/html/ezpublish5/ezpublish_testsystem/.run/extension/ezformtoken/event/ezxformtoken.php line 148
       
          at ezxFormToken::input(object(eZURI))
              in  line 
       
          at call_user_func_array(array('ezxFormToken', 'input'), array(object(eZURI)))
              in /var/www/html/ezpublish5/ezpublish_testsystem/.run/kernel/private/classes/ezpevent.php line 138
       
          at ezpEvent->notify('request/input', array(object(eZURI)))
              in /var/www/html/ezpublish5/ezpublish_testsystem/.run/kernel/private/classes/ezpkernelweb.php line 1162
       
          at ezpKernelWeb->requestInit()
              in /var/www/html/ezpublish5/ezpublish_testsystem/.run/kernel/private/classes/ezpkernelweb.php line 1205
       
          at ezpKernelWeb->runCallback(object(Closure), false)
              in /var/www/html/ezpublish5/ezpublish_testsystem/.run/kernel/private/classes/ezpkernel.php line 68
       
          at ezpKernel->runCallback(object(Closure), false)
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php line 157
       
          at eZ\Publish\Core\MVC\Legacy\Kernel->runCallback(object(Closure), false)
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Security.php line 87
       
          at eZ\Bundle\EzPublishLegacyBundle\LegacyMapper\Security->onKernelBuilt(object(PostBuildKernelEvent))
              in  line 
       
          at call_user_func(array(object(Security), 'onKernelBuilt'), object(PostBuildKernelEvent))
              in /var/www/html/ezpublish5/ezpublish/cache/dev/classes.php line 1796
       
          at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(array(object(Security), 'onKernelBuilt')), 'ezpublish_legacy.post_build_kernel', object(PostBuildKernelEvent))
              in /var/www/html/ezpublish5/ezpublish/cache/dev/classes.php line 1729
       
          at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('ezpublish_legacy.post_build_kernel', object(PostBuildKernelEvent))
              in /var/www/html/ezpublish5/ezpublish/cache/dev/classes.php line 1893
       
          at Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('ezpublish_legacy.post_build_kernel', object(PostBuildKernelEvent))
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php line 113
       
          at eZ\Publish\Core\MVC\Legacy\Kernel\{closure}()
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/Controller/LegacyKernelController.php line 57
       
          at eZ\Bundle\EzPublishLegacyBundle\Controller\LegacyKernelController->__construct(object(Closure), object(ChainConfigResolver), object(URIHelper), object(LegacyResponseManager))
              in /var/www/html/ezpublish5/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php line 5596
       
          at ezpublishDevDebugProjectContainer->getEzpublishLegacy_ControllerService()
              in /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache line 1977
       
          at Symfony\Component\DependencyInjection\Container->get('ezpublish_legacy.controller')
              in /var/www/html/ezpublish5/ezpublish/cache/dev/classes.php line 2413
       
          at Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver->createController('ezpublish_legacy.controller:indexAction')
              in /var/www/html/ezpublish5/ezpublish/cache/dev/classes.php line 2078
       
          at Symfony\Component\HttpKernel\Controller\ControllerResolver->getController(object(Request))
              in /var/www/html/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/TraceableControllerResolver.php line 46
       
          at Symfony\Component\HttpKernel\Controller\TraceableControllerResolver->getController(object(Request))
              in /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache line 2860
       
          at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
              in /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache line 2841
       
          at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
              in /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache line 2970
       
          at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
              in /var/www/html/ezpublish5/ezpublish/bootstrap.php.cache line 2249
       
          at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true)
              in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 67
       
          at eZ\Bundle\EzPublishCoreBundle\Kernel->handle(object(Request))
              in /var/www/html/ezpublish5/web/index.php line 64
      

      This only happens explicitly in "dev" mode.

        Issue Links

          Activity

          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          PR: https://github.com/ezsystems/ezpublish-kernel/pull/858

          Due to the hardness of reproducing this issue, this patch is theoretical.
          Paulo Nunes: Please test with this patch

          Thanks.

          Show
          Jérôme Vieilledent (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/858 Due to the hardness of reproducing this issue, this patch is theoretical . Paulo Nunes : Please test with this patch Thanks.
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in (fix for EZP-22643 which should be the same): ezpublish-kernel master: https://github.com/ezsystems/ezpublish-kernel/commit/12bd2864405c1d0fd81876994fce5bb0bcec29ea ezpublish-legacy master: https://github.com/ezsystems/ezpublish-legacy/commit/3e3e89477c08125a37b488fc08dadfa8347a431c
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A.

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (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 hour
                1h