Saturday, May 30, 2009

I love website bugs!

Sorry, a little software development joy. I was browsing around food links that I read on this article and when looking at ethnicgrocer.com and decided to look at what they think French Pantry Essentials should look like, I received the following message:

Server Error in '/' Application.
(...)
Parser Error Message: The server block is not well formed.
(...)
Line 7: <%@ userAgent = Request.ServerVariables("HTTP_USER_AGENT") userAgent = lcase(userAgent) if Instr(userAgent, "googlebot") then Response.redirect("http://www.myethnicworld.com/") %>

You can see the full page here. Look also at the source code. In the bottom you will see the stack trace and a very useful warning message:

<!--
This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->

Should I be the person seeing this? I really don't know why this is still the default behavior on web servers. It should be aware of the client and just dump debugging information if you have some sort of cookie set. Enough of seeing other people's code out there!
blog comments powered by Disqus