Community
Participate
Working Groups
When the server receives a request for a service handler that has not been registered, it silently answers with the initial HTML page. This can make it hard to track down a problem caused by a misspelled service handler id. I think we should throw an exception when the parameter "custom_service_handler" is present in a request but has an invalid value.
+1 for throwing an exception
Now an InvalidArgumentException is thrown in ServiceManager in case of an invalid service handler id, leading to an HTTP 500. This is an inappropriate response code (see also bug 371935), but at least the error gets noticed. I opened bug 374327 for registering service handlers by path as well. Changes are in CVS HEAD.