Ticket #60 (closed enhancement: released)

Opened 4 years ago

Last modified 3 years ago

[SVN] Godmode template error handling

Reported by: richard Owned by: olly
Priority: lowest Milestone:
Component: Omega Version: SVN trunk
Severity: minor Keywords:
Cc: Blocked By:
Operating System: All Blocking:

Description

Using the omega CGI with the godmode template produces a "500 Internal Server Error" response if asked to display a document ID which doesn't exist. While not in any way critical, this is unpleasant - a nicer response would be to display an error message, and a form to allow a different document ID to be entered.

Running omega on the command line with equivalent parameters (empty is an empty database) produces the following:

====BEGIN==== $ /usr/lib/cgi-bin/omega/omega omega - omega 0.8.4 (compiled Dec 10 2004 11:13:56) Enter NAME=VALUE lines, end with blank line ID=1 FMT=godmode DB=default

Exception: Can't read termlist for document 1: Not found ====END====

Change History

Changed 4 years ago by olly

  • priority changed from high to lowest
  • status changed from new to assigned
  • severity changed from trivial to enhancement

The change to allow supplying your own content-type: means that HTTP headers now typically aren't written if an exception is thrown.

I've fixed this in CVS HEAD.

You don't get prompted for a document id again, so I'll change this to "enhancement" and leave it open.

Changed 3 years ago by olly

  • status changed from assigned to closed
  • resolution set to fixed
  • summary changed from Godmode template error handling to [SVN] Godmode template error handling

Fixed in SVN trunk.

Changed 3 years ago by olly

Fixed in release 0.9.3.

Changed 3 years ago by olly

  • resolution changed from fixed to released

Changed 3 years ago by trac

  • platform set to All
Note: See TracTickets for help on using tickets.