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

content/versionview does not work with file clustered environment

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 4.0.1
    • Legacy > Clustering
    • None

    Description

      Symptoms of this issue:

      • VersionView feature of eZPublish does not work
      • Debug Output shows something akin to the following:

      oci_execute() [<a href='function.oci-execute'>function.oci-execute</a>]: ORA-01400: cannot insert NULL into ("EZDATABASENAME"."EZDBFILE"."NAME")
      ORA-06512: at "EZDATABASENAME.EZEXCLUSIVELOCK", line 4
      ORA-01403: no data found
      ORA-06512: at line 1 in extension/ezoracle/clusterfilehandlers/dbbackends/oracle.php on line 1137

      To Resolve the issue:

      See kernel/content/versionview.php

      302 
      303 $Result = eZNodeviewfunctions::generateNodeView( $tpl, $node, $contentObject, $LanguageCode, 'full', 0,
      304                                                  false, false, false );
      

      I augmented the 8th parameter ( $cachePath ) of the call to eZNodeviewfunctions::generateNodeView( ) to push through the value 'var/cache'. You may need to pull this dynamically from another function for it to work in all environments, or catch it later on to resolve in the public trunk.

      302 
      303 $Result = eZNodeviewfunctions::generateNodeView( $tpl, $node, $contentObject, $LanguageCode, 'full', 0,
      304                                                  false, 'var/cache', false );
      

      Without the path, in clustered envionments you get a null $Result ( it relates to the cache file not being generated due to the missing path when passing via the eZOracle extension ).

      Steps to reproduce
      • Setup eZPublish with an Oracle cluster, configuring file.ini to push all files into the database
      • Try and use the content/versionview kernel module

      Attachments

        Activity

          People

            unknown unknown
            34863fbf-887f-4ec0-83a3-f989c4cd40e0@accounts.ibexa.co josh rowley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: