#79 ✓resolved
Todd

temp files break routing

Reported by Todd | March 27th, 2009 @ 11:56 AM | in 0.12

If there is a temp file with the same name as your controller (plus an extension like .php~ or .php.bak, etc) in the same directory, your entire recess install will break.

to reproduce: Using your favorite editor* , edit a controller file in your application -- just insert some whitespace. Your editor may save a backup file like MyAppHomeController.php~ (notice the twiddle). re-load your app in the browser, and voila -- 500 error.

I imagine the Recess loader is not matching exactly on filenames, so the .php~ file is getting loaded instead of the desired controller file; then, the real file is getting loaded on top of it, resulting in a duplicate route.

(* = emacs)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Recess PHP Framework is an open source, full stack, RESTful PHP framework.

http://www.recessframework.org/

People watching this ticket

Tags

Pages