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

Compound matcher throws fatal error after patch from EZP-21834

    Details

      Description

      regression detected after after installing the patch, compound match rules will throw a fatal error, as in example:

              match:
                  Compound\LogicalAnd:
                      -
                          matchers:
                              Map\URI:
                                  the_front: true
                              Map\Host:
                                  example.site.com: true
                          match: ezdemo_site
      
      

      the error is: InvalidConfigurationException: The attribute "key" must be set for path "ezpublish.siteaccess.match.Compound\LogicalAnd".

        Issue Links

          Activity

          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/7e54cb400715d2d923c430b6205ce53f4704d95e
          Hide
          Jérôme Vieilledent (Inactive) added a comment - - edited

          Updated documentation. Example now uses real keys.

          Official way to do is now:

                      Compound\LogicalAnd:
                          my_compound_rule_1:
                              # Nested matchers, with their configuration.
                              # No need to precise their matching values (true will suffice).
                              matchers:
                                  Map\URI:
                                      the_front: true
                                  Map\Host:
                                      ezpublish.dev: true
                              # The siteaccess to match in the end
                              match: ezdemo_site 
                          my_compound_rule_2:
                              matchers:
                                  Map\URI:
                                      the_admin: true
                                  Map\Host:
                                      ezpublish.dev: true
                              match: ezdemo_site_admin
          

          The old way will still work but will have unexpected issues when adding new rules from different yml files.

          Show
          Jérôme Vieilledent (Inactive) added a comment - - edited Updated documentation. Example now uses real keys. Official way to do is now: Compound\LogicalAnd: my_compound_rule_1: # Nested matchers, with their configuration. # No need to precise their matching values (true will suffice). matchers: Map\URI: the_front: true Map\Host: ezpublish.dev: true # The siteaccess to match in the end match: ezdemo_site my_compound_rule_2: matchers: Map\URI: the_admin: true Map\Host: ezpublish.dev: true match: ezdemo_site_admin The old way will still work but will have unexpected issues when adding new rules from different yml files.
          Hide
          Pedro Resende (Inactive) added a comment -

          Symfony stack trace

          Show
          Pedro Resende (Inactive) added a comment - Symfony stack trace
          Hide
          Pedro Resende (Inactive) added a comment -

          Stack Trace

          Show
          Pedro Resende (Inactive) added a comment - Stack Trace
          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 Bras (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 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, 42 minutes
                5h 42m