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

Key: GRAILS-580
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Marc Palmer
Reporter: Marc Palmer
Votes: 0
Watchers: 0
Operations

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

bindData is unsafe, it will copy over special mutable properties like metaClass, constraints

Created: 10/Jan/07 01:47 PM   Updated: 11/Jan/07 06:29 AM
Component/s: None
Affects Version/s: 0.4
Fix Version/s: 0.4

Time Tracking:
Not Specified


 Description  « Hide
We need to call setDisallowedFields with a list of fields that are not safe to copy. This definitely includes "metaClass" but may or may not include "constraints" which can be useful to copy - it is just a closure after all. However copying metaClass breaks things badly.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Marc Palmer - 10/Jan/07 02:12 PM
Stopped it copying "metaClass" and "properties" for now

Marc Palmer - 11/Jan/07 02:43 AM
I fixed this but am moving it to a more sensible place