On Jul 7, 2006, at 9:34 AM, Cedarstone wrote:

Hi All

We have an application that has been running for a while with no noticeable problems. However in recent days the HenryTheMiragoRobot (217.154.245.244 & 217.154.245.249) has been causing an internal server error when visiting our site. No other requests from bots or browsers seem to trigger this.

The problem appears to be that when WORequest.formValues() is called in part of our code it returns null rather than an empty NSDictionary as it would normally. The null then trips us over.

Looking at the WORequest.formValues() method code it appears that this can happen when _contentType() is not equal to either "application/x-www-form-urlencoded" or "multipart/form-data".

Is contentType normally set for a simple GET request, I thought this was only set as part of the response? Does this look like a malformed bot or an error by us? Anybody had and recent problems with HenryTheMiragoRobot?

Ideas?

I think I have seen things like this when the request was a HEAD instead of a GET or POST. Check that. IIRC, i just fail those at the Apache level.

Chuck

--
Coming sometime... - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to