Dear Henning, Ferran,

On 26. 12. 13 07:49, Ferran Jorba wrote:
> Unfortunately, that is how Invenio treats all unexisting addresses.
> Type anything after the / and you'll have an exception.  Yes, an 404
> would be much better and we'd have less exception alarms and noise, but
> I don't know how to do it.  Anybody?

A 404 is indeed returned in these cases, but you also get an alert as a 
"bonus". You can tweak the behaviour with variable 
"CFG_WEBSTYLE_HTTP_STATUS_ALERT_LIST" in your invenio-local.conf file:

| ## CFG_WEBSTYLE_HTTP_STATUS_ALERT_LIST -- when certain HTTP status
| ## codes are raised to the WSGI handler, the corresponding exceptions
| ## and error messages can be sent to the system administrator for
| ## inspecting.  This is useful to detect and correct errors.  The
| ## variable represents a comma-separated list of HTTP statuses that
| ## should alert admin.  Wildcards are possible. If the status is
| ## followed by an "r", it means that a referer is required to exist
| ## (useful to distinguish broken known links from URL typos when 404
| ## errors are raised).
| CFG_WEBSTYLE_HTTP_STATUS_ALERT_LIST = 404r,400,5*,41*

See also:
<http://www.mail-archive.com/[email protected]/msg06680.html>

Best regards
-- 
Jerome Caffaro ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to