#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 , 20 years ago
Priority: | high → lowest |
---|---|
Severity: | trivial → enhancement |
Status: | new → assigned |
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Summary: | Godmode template error handling → [SVN] Godmode template error handling |
Fixed in SVN trunk.
comment:4 by , 19 years ago
Operating System: | → All |
---|---|
Resolution: | fixed → released |
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.