Web Application Error Pages

An error is displayed when a problem occurs in executing the desired Uniface service, for example, if an incorrect URL is provided.

This page contains technical information that can be very useful during testing and debugging, but in a production environment, it could be used by a malevolent user to glean information about the application. Some security policies dictate that such a page should never be shown to the enduser, and therefore many Web applications simply present a page saying there has been an error, without giving any details.

The default error page has a yellow background and shows a unique error code. If the request is an HTTP GET request and it causes Uniface internal error -50 ("Signature not found"), HTTP status code 404 is displayed.

To configure WRD error pages, set these logicals in the [LOGICALS] section of the wasv.asn file.

Logicals
Logical Values Description
USYSHTTPTITLE Text Page title
USYSHTTPHEADER Text Page heading
USYSHTTPBODY Text Page text
USYSHTTPBGCOLOR Web color name or hexadecimal equivalent. Refer to Color Names Supported by All Browsers. Background color of the error page. The default is yellow.
USYSHTTPBACKGROUND Path\ImageName Background image of the error page
USYSHTTPMSGFRAME True | False Displays the contents of the message frame in the error page.

It is recommended the you remove this setting in a production environment, as the message frame may contain information that the end user should not be confronted with.

Logicals in wasv.asn

[LOGICALS]
USYSHTTPTITLE           Application Error
USYSHTTPHEADER          <pre>An error has prevented the execution of your request</pre>
USYSHTTPBODY            Please contact your System Administrator
USYSHTTPBGCOLOR         wheat
USYSHTTPBACKGROUND      ..\images\logo.jpg
USYSHTTPMSGFRAME        false

Other Error Pages

Uniface provides a default set of error pages which you can reference in ProcScript for web application error handling which you can customize. For more information, see Customize WRD Error Messages.

Related Topics