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

Compound\LogicalAnd serialization fails

    XMLWordPrintable

Details

    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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            joaquim.cavalleri-obsolete@ez.no Joaquim Cavalleri (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 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 - 5 hours
                5h