Development

#3211 ([PATCH] Ugly exception when accessing an unknown route)

You must first sign up to be able to contribute.

Ticket #3211 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

[PATCH] Ugly exception when accessing an unknown route

Reported by: trivoallan Assigned to: fabien
Priority: minor Milestone: 1.1.0 beta3
Component: routing Version: 1.1.0 DEV
Keywords: Cc:
Qualification: Unreviewed

Description

Trying to access an unknown route :

Catchable fatal error: Argument 1 passed to sfDebug::requestAsArray() must be an instance of sfRequest, null given, called in lib/symfony/exception/sfException.class.php on line 130 and defined in lib/symfony/debug/sfDebug.class.php on line 108

enclosed patch enables symfony to display the usual :

[sfError404Exception]
No matching route found for "/path"

Attachments

sfdebug_nullrequest.patch (466 bytes) - added by trivoallan on 03/26/08 15:20:37.

Change History

03/26/08 15:20:37 changed by trivoallan

  • attachment sfdebug_nullrequest.patch added.

03/26/08 15:36:14 changed by fabien

  • milestone set to 1.1.0 beta3.

03/26/08 15:36:32 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [8096]) fixed ugly exception when accessing an unknown route (closes #3211)

03/26/08 19:11:49 changed by carloslcuenca

the exception also affects to function responseAsArray(sfResponse $response) the solution is the same

03/31/08 14:42:46 changed by nicolas

(In [8172]) Fixed responseAsArray() when sfWebResponse is empty (refs #3211)