Hi all,
the intention of this thread is to encourage everybody to commit work and thoughts they have on to improve the error handling for users in OpenACS.
We really have to reduce the frustration of users who do not understand why an error message is returned. This issue seems very important to me because a system is only as good as what users think of what it is, right?
So what can we do?
Here are some thoughts:
- why not use a template (adp) not to shock users when something happens. This template could have at least the admin's email...better an i18n-explaination.
- Even better a form to submit a message to the admin what went wrong. To improve the last part the idea was to make use of the bug-tracker as kind of a support service. Each feature that is accessible by the user (file-storage, calendar, ...) should have a corresponding support-service component in the bug-tracker. So when ever there is an error a form could show up to report a problem message. To help the user most of the stuff in the form could automatically get filled out (component, urls, request info stuff)...one could even have a counter..if a user tries something four times until he gives up and posts a new problem message we could set the severity to high. Maybe it is even possible to distinguish automatically between user mistake or real bugs.
What do you think? I am really interested to know.
I looked at the code and from my understanding packages/acs-tcl/tcl/defs-procs.tcl contains the following procs that do the error handling:
- ad_return_complaint
- ad_return_exception_page used by
ad_return_error
ad_return_warning
ad_return_forbidden
Also in config.tcl we have:
ns_param NotFoundResponse "/global/file-not-found.html"
ns_param ServerBusyResponse "/global/busy.html"
ns_param ServerInternalErrorResponse "/global/error.html"
and
ns_section ns/server/${server}/redirects
ns_param 404 "global/file-not-found.html"
ns_param 403 "global/forbidden.html"
When are these files served..i mean from which proc?
I found a post of how to change to *.adp files here:
https://openacs.org/forums/message-view?message_id=29960
Greetings,
Nima