Issue Details (XML | Word | Printable)

Key: GRAILS-2347
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Graeme Rocher
Reporter: Brian Leonard
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

Error 404 when using Edit or Delete with Scaffolding when Controller and Domain Class name differ

Created: 01/Feb/08 10:28 AM   Updated: 21/Feb/08 02:26 PM   Resolved: 15/Feb/08 05:53 AM
Return to search
Component/s: Scaffolding
Affects Version/s: 1.0-RC4
Fix Version/s: 1.0.1

Time Tracking:
Not Specified

Environment: OSX


 Description  « Hide

To reproduce:

1) grails create-app blog
2) cd blog
3) grails create-domain-class post
4) grails create-controller blog
5) cd grails-app/controllers
6) add scaffold = post to BlogController.groovy
7) cd ../..
8) grails run-app
9) Create a post and attempt to edit and/or delete it.



Charles Ditzel added a comment - 11/Feb/08 09:50 PM

This looks like a bug. I have duplicated the same behavior.


Dr. Gernot Starke added a comment - 21/Feb/08 02:26 PM

I just tested on 1.0.1 - still fails (with the Bookmark-example from the docu/book)...

First version:
class BookmarkController {

def scaffold = Bookmark
}

yields HTTP ERROR: 404

/WEB-INF/grails-app/views/bookmark/index.jsp

RequestURI=/bookmark/WEB-INF/grails-app/views/bookmark/index.jsp

So, imho, it's NOT fixed yet...