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

Key: GRAILS-937
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

Adding constraints breaks dynamic scaffolding

Created: 17/Mar/07 08:06 PM   Updated: 29/Apr/07 05:51 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-17032007.zip (11 kb)

Image Attachments:

1. screenshot.png
(57 kb)
Environment: Mac OS X 10.4.8
Issue Links:
Related
 


 Description  « Hide
1. Create a new app with the following classes:
class Author { 
    String name
    
    static constraints = {
        name(blank:false)
    }
}
class AuthorController {
	def scaffold = Author
}

2. grails run-app

3. Try to create a new author (http://localhost:8080/library/author/create) without entering an author name

4. When you click Create, observe that the browser tries to download a file to your system. (See attached screen shot.)

Note - This problem does not occur if you remove the constraints or if you use static scaffolding.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jeff Brown - 14/Apr/07 06:53 PM
GRAILS-928 and GRAILS-937 appear to be related

Jason Rudolph - 29/Apr/07 05:51 PM
Verified against 0.5 RC2