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

    • Type: Improvement
    • Status: Confirmed
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Customer request
    • Component/s: Misc
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              unknown unknown
              Reporter:
              ji@ez.no João Inácio
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: