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

LogicalAnd & LogicalOr not working when using two times the same criterion type

    Details

      Description

      EZ REST Api is not able to parse XML <AND> Statements when using two times criterions of same type. See example:

       <OR>
           <ContentTypeIdentifierCriterion>author</ContentTypeIdentifierCriterion>        
           <ContentTypeIdentifierCriterion>book</ContentTypeIdentifierCriterion>
           <Field>
             <name>title</name>
             <operator>EQ</operator>
             <value>Contributing to projects</value>
           </Field>
           <Field>
            <name>title</name>
            <operator>EQ</operator>
            <value>Contributing to projects</value>
           </Field>
        </OR>
      

      Reason is that the constraints are not parsed into numeric array instead the criterion type is used as index, which causes the further parsing to break.

        Activity

        Show
        Andrzej Longosz added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/2527
        Hide
        Andrzej Longosz added a comment -

        Merged ezsystems/ezpublish-kernel#2527 as ezsystems/ezpublish-kernel@75fc90e into 6.7 and up to 6.13, 7.4, 7.5 and master.

        Show
        Andrzej Longosz added a comment - Merged ezsystems/ezpublish-kernel#2527 as ezsystems/ezpublish-kernel@75fc90e into 6.7 and up to 6.13 , 7.4 , 7.5 and master .

          People

          • Assignee:
            Unassigned
            Reporter:
            Rozbeh Chiryai Sharahi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: