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

    • Type: Bug Bug
    • Status: QA
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 1.7.8, 1.13.4, 2.3.2, 2.4.1
    • Fix Version/s: None
    • Component/s: Platform > REST API v2
    • Labels:
      None

      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

          People

          • Assignee:
            Marek NocoĊ„
            Reporter:
            Rozbeh Chiryai Sharahi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: