Opened 11 years ago

Last modified 10 years ago

#126 new task

Duplicate auto-create?

Reported by: dom Owned by: Nobody
Priority: normal Milestone:
Component: oxford.openguides.org Version:
Severity: normal Keywords:
Cc:

Change History (2)

comment:1 Changed 11 years ago 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.

comment:2 Changed 10 years ago by dom

  • Owner changed from dom to Nobody
Note: See TracTickets for help on using tickets.