URLManager being too strict on parameters, breaks API

I implemented this REST API guide: http://www.yiiframework.com/wiki/175/how-to-create-a-rest-api/ (just so you know the context). I have this rule in the main.php config’s URL manager


array('api/delete', 'pattern'=>'api/<model:\w+>/<id:\d+>', 'verb'=>'DELETE'),

Up until today it was working all fine. I implemented the DELETE call to /api/comments and based on the example code my API was replying with an error if the ID parameter was missing from the GET parameters.

Starting today though the whole URL rule stops applying if the ID is not there. So if I send DELETE /api/comments the URLmanager skips it entirely. Same if I send DELETE /api/ without the “method” parameter, it still doesn’t apply and moves on to try to match the next rule. In both cases, based on the above line of code, and as far as I am aware, it should direct me to /api controller’s “delete” action, should it not? It actually used to do that.

What could be wrong? I honestly don’t know of changing anything even remotely connected to URL managing.

Thank you.