Opened 20 years ago

Closed 19 years ago

Last modified 19 years ago

#60 closed enhancement (released)

[SVN] Godmode template error handling

Reported by: Richard Boulton Owned by: Olly Betts
Priority: lowest Milestone:
Component: Omega Version: SVN trunk
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Operating System: All

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 (4)

comment:1 by Olly Betts, 20 years ago

Priority: highlowest
Severity: trivialenhancement
Status: newassigned

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.

comment:2 by Olly Betts, 19 years ago

Resolution: fixed
Status: assignedclosed
Summary: Godmode template error handling[SVN] Godmode template error handling

Fixed in SVN trunk.

comment:3 by Olly Betts, 19 years ago

Fixed in release 0.9.3.

comment:4 by Olly Betts, 19 years ago

Operating System: All
Resolution: fixedreleased
Note: See TracTickets for help on using tickets.