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.

    Details

    • Type: Improvement Improvement
    • Status: Confirmed
    • Priority: Medium 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()) )
      

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Backlog Backlog
        126d 22h 41m 1 joao.inacio@ez.no 26/Oct/12 6:28 PM
        Backlog Backlog Confirmed Confirmed
        278d 3h 29m 1 André Rømcke 31/Jul/13 9:57 PM

          People

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

            Dates

            • Created:
              Updated: