Customizable error page
-----------------------
Key: ESI-386
URL: http://www.jahia.net/jira/browse/ESI-386
Project: Jahia Cache Server (ESI)
Issue Type: Improvement
Components: ESI Server
Reporter: JB BUGEAUD
Assignee: Cédric Mailleux
When generating an error (for instance on timeout when a cache is not able to
get the data from the CMS server because the server is down), the current code
is using the org.jahia.esi.Utils methods (such as getTimeOutErrorPage for our
example) to generate the content of the page returned to the user.
The improvement would consist on throwing directly an exception instead and
relying on the error page handling of Java EE. IE, add a
TransferFailedException error page in the web.xml with the same default content.
The code that shall be modified is in the class ResponseHandlerBase the process
method should perform cache cleaning (if required) and simply propagate the
exception tifysimply propagate TransferFailedException . This would be the
error page job to ensure the correct display.
This would preserve full backward compatibility but would enable us to
customize the error page.
An example of customization for us would be to put a nice "non alarming
message" along with the customer logo and CSS, so that it looks "well
integrated" and "clean" even though this is an error page.
This is a critical feature to make the cache look professional even when
failing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.jahia.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
jira_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/jira_list