Details
-
Bug
-
Resolution: Fixed
-
High
-
5.1, 5.2-alpha1, 2013.07, 5.2-beta1
-
eZ Publish 5.1 with eZ Demo
Description
The usage of Compound\LogicalAnd matching system is broken when using ESI or Hinclude subrequests.
The following exception is thrown:
Exception: Serialization of 'Closure' is not allowed at /Users/tretas/git.sources/ezsupport/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Fragment/FragmentUriGenerator.php:31
steps to reproduce:
. configure eZ Publish 5.1 with eZ Demo (it uses an hinclude subrequest)
. configure match as below
match: Compound\LogicalAnd: - matchers: Map\URI: the_front: true Map\Host: <somehost>: true match: ezdemo_site_user - matchers: Map\URI: the_back: true Map\Host: <somehost>: true match: ezdemo_site_admin
Opening <somehost>/the_back will work as expected (admin interface, which is run in legacy => no subrequest)
Opening <somehost>/the_front won't work (the exception will be thrown)