History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-928
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Graeme Rocher
Reporter: Jason Rudolph
Votes: 0
Watchers: 0
Operations

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

Constraints broken when used with dynamic scaffolding

Created: 11/Mar/07 12:20 PM   Updated: 29/Apr/07 05:50 PM
Component/s: None
Affects Version/s: 0.5-RC1
Fix Version/s: 0.5-RC1

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive library-bug-report-11032007.zip (11 kb)

Environment: Mac OS X 10.4.8
Issue Links:
Related
 


 Description  « Hide
1. Create a domain class with a constraint.
class Author { 
    String name

    static constraints = {
        name(blank:false)
    }
}

2. Implement dynamic scaffolding for the domain class.

class AuthorController {

	def scaffold = Author
}

3. Try to persist an object that violates the constraints. Instead of getting a validation error, the system displays...

HTTP ERROR: 404

/WEB-INF/grails-app/views/author/create.jsp

RequestURI=/library/author/save

Powered by Jetty://

Note: If you use static (i.e., generated) scaffolding instead, the constraints function correctly.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jason Rudolph - 29/Apr/07 05:50 PM
Verified against 0.5 RC2