added a comment -
06/Apr/10 8:33 PM You know, the more I think about this, the more I think the current behavior of redirecting to home page (with a 200 HTTP status!) when a 'fatal' (caught at top level) error is encountered -- is just bad behavior in the first place. I'm always annoyed when vendors web apps do that (typically because I'm trying to screen scrape them, which hopefully nobody will have to do with Blacklight, but still, it's just bad web behavior).
Jessie, or anyone else, what do you think about having an un-caught top-level error simply display an actual error page (and return an HTTP 500 response code), instead of redirecting to home page at all? The error page could include a link back to the home page still.
But this seems like better behavior to me, AND will make the endless redirect go away as a byproduct.
What do you think?
[ Longer term, to REALLY be a good web citizen, many of those uncaught errors ought to be caught at the right place, and have the properly meaningful 4xx code displayed. For instance, a show URL to a document ID that doesn't exist should give a 404 with a more specific error message, not a 500 "something bad happened". But that's for a different ticket than this one, just mentioning it for thought. ]
Jessie, or anyone else, what do you think about having an un-caught top-level error simply display an actual error page (and return an HTTP 500 response code), instead of redirecting to home page at all? The error page could include a link back to the home page still.
But this seems like better behavior to me, AND will make the endless redirect go away as a byproduct.
What do you think?
[ Longer term, to REALLY be a good web citizen, many of those uncaught errors ought to be caught at the right place, and have the properly meaningful 4xx code displayed. For instance, a show URL to a document ID that doesn't exist should give a 404 with a more specific error message, not a 500 "something bad happened". But that's for a different ticket than this one, just mentioning it for thought. ]