Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

temp files break routing

#79

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)

Reported by Todd · March 27th, 2009 @ 11:56 AM

State: resolved
Milestone: 0.12
Assigned to: Kris Jordan Kris Jordan

Activity

  1. Todd
    Todd

    this bug was found on the 0.11.1 tarball.

    March 27th, 2009 @ 11:57 AM

  2. Kris Jordan
    Kris Jordan
    • State changed from new to open

    Thanks for the report Todd, will fix asap.

    March 27th, 2009 @ 12:04 PM

  3. Kris Jordan
    Kris Jordan
    • Milestone changed from 0.11.1 to 0.12

    March 30th, 2009 @ 09:27 PM

  4. Kris Jordan
    Kris Jordan
    • 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.

    http://github.com/recess/recess/...

    March 31st, 2009 @ 02:04 PM

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.