Software Development |
Ruby on Rails
altered_beast Bugs
The authors may have fixed these bugs but I thought I'd note them down as I found them.
The bugs were found in commit d327bb75ca4d9cd1a95cfed84676b16e3c6f923c from GitHub.
Dodgy URLS explode
When I was looking at the permalink_fu_plugin I noticed that altered_beast fails to catch some fairly basic errors. Requests for existing resources works fine but, for example, altered_beast doesn't cope with any of these URLs:
- http://localhost:3000/forums/dodgy
- http://localhost:3000/forums/dodgy.xml
- http://localhost:3000/forums/realforum/topics/dodgy
- http://localhost:3000/forums/realforum/topics/dodgy.xml
- http://localhost:3000/forums/dodgyforum/topics/dodgy
- http://localhost:3000/forums/dodgyforum/topics/dodgy.xml
In all cases "dodgy" means something that doesn't exist in the system.
I've looked into altered_beast Error Handling in more details separately.
Moderators can't Edit
In the the Posts controller. admin users correctly get rights to edit, update and destroy posts that they didn't create. Moderators get the Edit Post links on the relevant forms but these don't work.
