I'm still trying to get one of my sites validated with Google
Webmaster Tools.  Google wants to probe for a nonexistent file to
ensure that we give a proper 404, but is getting back 500 instead when
asking for /noexist_HEXGOBBLEDYGOOK.html.  HEXGOBBLEDYGOOK has no
connection (that I know of) with 'xmlui.google.analytics.key'.

It looks to me like the problem is this:  the master sitemap has a
match rule for "*.html" to enable serving static HTML files from
config/static.  This matches the request, but the ResourceReader will
fail to find it and return either IOException or ProcessingException.
The "exception" matcher is not set up to recognize either of these, so
the 'otherwise' branch is taken a little further down in the
'handle-errors' block, which returns 500.

I think that the exception matcher needs to name another exception,
probably IOError, which can be provided for in the 'handle-errors'
block.  I guess my question is: is this the right approach, or will
that catch other exceptions that shouldn't be 404s?  I'm still
learning Cocoon's ropes (and now in 2.2 they replaced some of the
ropes!).

-- 
Mark H. Wood, Lead System Programmer   [email protected]
Friends don't let friends publish revisable-form documents.

Attachment: pgpXeEfMdYy9F.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to