RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Previous|Next

  • Tickets
  • » Ticket #158

Ticket #158 (Open)Fri Nov 23 17:58:57 UTC 2007

Typo can break its database

Reported by: Andrew Hodgkinson (6) Severity: Major
Part: Web site: Typo (blog engine; news pages) Release: 3rd public site release
Milestone: Batch Three code release completed Status Open

Details by Andrew Hodgkinson (6):

In a test database (not the live one – IMPORTANT!) create an article with a future publishing date. Save it. Now edit the article before it reaches its publishing date and in passing, update that publishing date to some time even further in the future. Typo will then fail; you will be unable to access either the public or administrative interfaces. Log messages will be huge because Rails gets sent into a recursive loop and only bails out when stack space becomes exhausted.

It turns out that Typo creates two entries in the ‘triggers’ table, both for the same article ID. Typo fails to delete the first one when the publishing time is updated and this seems to provoke the failure. To recover the situation when this was first seen, I had to use ‘psql’ to edit the Typo database manually. I deleted all references to the article including both trigger table entries, but it would probably be sufficient to delete just the earlier of the two triggers and leave everything else intact. This should restore sanity and with luck Typo will go on to publish the article at the updated time. I have not tested this theory, though.

The latest version of Typo may have fixed this bug, but if not its root cause should be investigated and a patch produced for submission back to the official Typo tree.

Changelog:

Modified by Trevor Johnson (329) Wed, January 12 2011 - 13:10:23 GMT

What version of Typo is the site on now? Was it upgraded to v.5?

If the issues in this ticket are resolved, then I think it can be closed.

Modified by Andrew Hodgkinson (6) Wed, March 16 2011 - 19:35:48 GMT

No, the ticket is still relevant. Since only administrators can publish articles and we all know about this bug, it’s “safe” but still needs fixing eventually.

Modified by Andrew Hodgkinson (6) Wed, March 16 2011 - 19:52:55 GMT

  • Milestone changed from Unspecified to Batch Three code release completed
  • Release changed from Unspecified to 3rd public site release

Modified by Sean Boles (7367) Mon, March 23 2020 - 13:41:59 GMT

I’m going to reference Ticket #126 as it also relates to typo.

  • Comment on, or change status of, this ticket

Previous|Next

Search tickets

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Options

  • Tickets
  • New ticket
  • Milestones
  • Subversion: Changesets
  • Subversion: Browse
  • CVS: Revisions
  • CVS: Browse
  • Search

RSS feeds Rss

  • Tickets
  • Everything!
  • More feeds...
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Collaboa theme is distantly based on the Collaboa default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Collaboa
This site runs on Rails

Hosted by Arachsys