View Issue Details

IDProjectCategoryView StatusLast Update
133PHPOF2Defaultpublic5 Jan 2009 16:33
Reportermkierat Assigned Totimj  
PriorityhighSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.10.1 
Target Version0.11.0Fixed in Version0.11.0 
Summary133: Fatal error storing LOB data if audit driver not loaded
DescriptionWhen the audit driver is not loaded a warning and then a fatal error occurs when storing lob data.

Index: DBRow/Audited.php
===================================================================
--- DBRow/Audited.php (revision 13311)
+++ DBRow/Audited.php (working copy)
@@ -71,8 +71,12 @@
       public function storeLOBData(&$data, $data_column)
    {
- $changes = array($data_column => '[Data changed]');
- $this->db->phpof2_auditor->recordEvent(PHPOF2_Audit_Interface::EVENT_TYPE_UPDATE, $this->table->name, $this->serialisePriKey(), $this->_getAuditOwner(), $this->audit_note, $changes);
+ //check if audit enabled
+ if (!$this->isAuditEnabled()) {
+ $changes = array($data_column => '[Data changed]');
+ $this->db->phpof2_auditor->recordEvent(PHPOF2_Audit_Interface::EVENT_TYPE_UPDATE, $this->table->name, $this->serialisePriKey(), $this->_getAuditOwner(), $this->audit_note, $changes);
+ }
+ parent::storeLOBData($data, $data_column);
        $this->_forceInitChangeRecording();
    }
TagsNo tags attached.

Activities

timj

29 Dec 2008 16:52

manager   ~155

Fixed in SVN r1426

Issue History

Date Modified Username Field Change
21 Dec 2008 22:24 timj New Issue
21 Dec 2008 22:25 timj Reporter timj => mkierat
21 Dec 2008 22:25 timj Assigned To => timj
21 Dec 2008 22:25 timj Status new => assigned
21 Dec 2008 22:25 timj Target Version => 0.10.2
21 Dec 2008 22:26 timj Target Version 0.10.2 => 0.11.0
29 Dec 2008 16:52 timj Note Added: 155
29 Dec 2008 16:52 timj Status assigned => resolved
29 Dec 2008 16:52 timj Fixed in Version => 0.11.0
29 Dec 2008 16:52 timj Resolution open => fixed
5 Jan 2009 16:33 timj Status resolved => closed