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

Parameter miss matching in eznodeviewfunctions.php

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0.2, 4.1.0alpha1
    • 4.0.1
    • Caching
    • None

    Description

      We noticed a potential issue in kernel/classes/eznodeviewfunction.php as the following:

      In line: 45, a parameter "viewCacheEnabled" was added.

              $args = compact( "tpl", "node", "object", "languageCode", "viewMode", "offset",
                               "viewCacheEnabled",
                               "viewParameters",
                               "collectionAttributes", "validation" );
      
      

      But in line: 78,

          static function generateNodeViewData( $tpl, $node, $object, $languageCode, $viewMode, $offset,
                                                $viewParameters = array( 'offset' => 0, 'year' => false, 'month' => false, 'day' => false ),
                                                $collectionAttributes = false, $validation = false )
      
      

      The parameter list does not have $viewCacheEnabled, thus it may cause parameter miss matching at runtime.

      Attachments

        Activity

          People

            cyberwolf cyberwolf
            zerustech zerustech
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: