updating file config in admin section throws ctime warning

Bug #802337 reported by Hugh Davenport
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Low
Hugh Davenport

Bug Description

[WAR] 81 (lib/errors.php:745) Failed to get a recordset: postgres7 error: [-1: ERROR: null value in column "ctime" violates not-null constraint] in EXECUTE("INSERT INTO "site_content" ("name", "content", "mtime", "mauthor") VALUES (?, ?, ?, ?)")
[WAR] 81 (lib/errors.php:745) Command was: INSERT INTO "site_content" ("name", "content", "mtime", "mauthor") VALUES (?, ?, ?, ?) and values was (uploadcopyright,,2011-06-27 15:56:20,1)
Call stack (most recent first):
  * log_message("Failed to get a recordset: postgres7 error: [-1: E...", 8, true, true) at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:109
  * log_warn("Failed to get a recordset: postgres7 error: [-1: E...") at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:745
  * SQLException->__construct("Failed to get a recordset: postgres7 error: [-1: E...") at /home/hugh/src/mahara/mahara/htdocs/lib/dml.php:1060
  * insert_record("site_content", object(stdClass)) at /home/hugh/src/mahara/mahara/htdocs/artefact/file/lib.php:1320
  * ArtefactTypeFile::save_config_options(array(size 17)) at Unknown:0
  * call_user_func_array(array(size 2), array(size 1)) at /home/hugh/src/mahara/mahara/htdocs/lib/mahara.php:1202
  * call_static_method("ArtefactTypeFile", "save_config_options", array(size 17)) at /home/hugh/src/mahara/mahara/htdocs/admin/extensions/pluginconfig.php:114
  * pluginconfig_submit(object(Pieform), array(size 17)) at Unknown:0
  * call_user_func_array("pluginconfig_submit", array(size 2)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:512
  * Pieform->__construct(array(size 9)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:161
  * Pieform::process(array(size 9)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:71
  * pieform(array(size 9)) at /home/hugh/src/mahara/mahara/htdocs/admin/extensions/pluginconfig.php:94

Revision history for this message
François Marier (fmarier) wrote :

How did you get this? (what page / action did you perform)

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

I was a bit vague there :)

Page was on the Admin->Extensions->File config
otherwise known as /admin/extensions/pluginconfig.php?plugintype=artefact&pluginname=file&type=file

Click save, and that is what happens

Revision history for this message
François Marier (fmarier) wrote :

I can't reproduce this on master (tested on MySQL and Postgres).

In my postgres DB, the ctime column of site_content is nullable (i.e. it's not "NOT NULL").

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :
Changed in mahara:
assignee: nobody → Hugh Davenport (hugh-catalyst)
status: Triaged → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/556
Committed: http://gitorious.org/mahara/mahara/commit/f41b2c335f62f11c8ed39bd94e464b60bc52aef0
Submitter: Richard Mansfield (<email address hidden>)
Branch: master

commit f41b2c335f62f11c8ed39bd94e464b60bc52aef0
Author: Hugh Davenport <email address hidden>
Date: Tue Aug 2 16:08:01 2011 +1200

    Fix ctime constraint on file config page (bug #802337)

    Change-Id: I544009df48c0059c35c8630c84111f1fb9b90490
    Signed-off-by: Hugh Davenport <email address hidden>

Changed in mahara:
milestone: none → 1.5.0
status: In Progress → Fix Committed
Melissa Draper (melissa)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.