Grails

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.0-RC4
  • Fix Version/s: 1.0.1
  • Component/s: Scaffolding
  • Labels:
    None
  • Environment:
    OSX

Description

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.

Activity

Hide
Charles Ditzel added a comment -

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

Show
Charles Ditzel added a comment - This looks like a bug. I have duplicated the same behavior.
Hide
Dr. Gernot Starke added a comment -

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...

Show
Dr. Gernot Starke added a comment - 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...
Hide
Graeme Rocher added a comment -

Bulk closing bunch of resolved issues

Show
Graeme Rocher added a comment - Bulk closing bunch of resolved issues

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: