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
-
Kris Jordan March 27th, 2009 @ 12:04 PM
- State changed from new to open
Thanks for the report Todd, will fix asap.
-
Kris Jordan March 30th, 2009 @ 09:27 PM
- Milestone changed from 0.11.1 to 0.12
-
Kris Jordan March 31st, 2009 @ 02:04 PM
- State changed from open to resolved
Fixed in commit 001648fc
Library now makes sure processed files end with .class.php, rather than simply contain .class.php.
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.
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/