Action fails when $id parameter is alphanumeric

I’ve a table turned into CModel, and a CController with admin/delete actions. But, by the fact that the ID of the table is alphanumeric random-generated string, the action delete failed with the response ‘Your request is invalid.’

If I try to call the action with some numeric ID, the request is processed successfuly.

the code for the delete action:


	 * Deletes a particular model.

	 * If deletion is successful, the browser will be redirected to the 'manage' page.

	 * @param string $id the ID of the model to be deleted


	public function actionDelete($id)




			// we only allow deletion via POST request


			// if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser


				$this->redirect(isset($_POST['returnUrl']) ? $_POST['returnUrl'] : array('manage'));



			throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');


How could I make it work with alphanumeric IDs?

I found it has to be with the UrlManager rules, as in this post: