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

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rozbeh.sharahi@gmail.com rozbeh.sharahi@gmail.com
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: