#126: Duplicate auto-create? -----------------------------------+---------------------------------------- Reporter: dom | Owner: dom Type: task | Status: new Priority: normal | Milestone: Component: oxford.openguides.org | Version: Severity: normal | Keywords: -----------------------------------+---------------------------------------- Look into why this happened:
http://oxford.openguides.org/wiki/wiki.cgi?action=list_all_versions;id=Categ...
#126: Duplicate auto-create? -----------------------------------+---------------------------------------- Reporter: dom | Owner: dom Type: task | Status: new Priority: normal | Milestone: Component: oxford.openguides.org | Version: Severity: normal | Resolution: Keywords: | -----------------------------------+---------------------------------------- Comment (by ivorw):
This looks like it could be a database problem. The auto_create code checks categories and locales prior existence using node_exists (OpenGuides.pm lines 951-973).
It looks as if in this case, node_exists gave a false negative. This sub is in Wiki::Toolkit::Store::Database, and seems to be taking the row count returned from a query. When the node does not exist, no rows are returned from the query, and this zero value is read as false.
If there were some database error, I would have expected DBI or the driver module to throw an exception, as we have got RaiseError set to 1.
Maybe there is some DB admin overdue on Oxford.
openguides-tickets@lists.openguides.org