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

incorrect status parameter for collaboration fetch functions can trigger fatal error.

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Customer request
    • None
    • Misc
    • None
    • eZ Publish 4.6

    Description

      Using an incorrect 'status' parameter for certain collaboration fetch functions will cause a fatal error.

      The expected status is parameter is an array() of possible values, but using true() will generate an sql query containing the following:

        WHERE ezcollab_item.status IN ( ) AND
      

      As this query is not valid, a fatal error will occur.

      Steps to reproduce:

      Create and use a fetch function like the following:

        fetch("collaboration","item_count", hash("status", true()) )
      

      Attachments

        Activity

          People

            unknown unknown
            ji@ez.no ji@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: