Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.3.7
-
Fix Version/s: 2.3-M2
-
Component/s: Controllers, Persistence, Scaffolding
-
Labels:None
Description
When attempting to save a new domain object, the default implementation of the controller's save makes a new instance of the object and calls hibernate to save. If there are any errors (i.e. constraint validation fails), the page is rendered again w/ the list of failing constraints. However, if a user then proceeds to view a list of all saved objects via a call to the controller's list method, the invalid object is still persisted to the database and now the database is corrupted.
-
Hide
- grails8345.zip
- 21/Nov/11 1:02 PM
- 179 kB
- Jeff Brown
-
- grails8345/.classpath 0.7 kB
- grails8345/.gitignore 0.0 kB
- grails8345/.project 0.5 kB
- grails8345/.../org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- grails8345/application.properties 0.2 kB
- grails8345/grails-app/.../BootStrap.groovy 0.2 kB
- grails8345/grails-app/.../BuildConfig.groovy 1 kB
- grails8345/grails-app/conf/Config.groovy 4 kB
- grails8345/grails-app/.../DataSource.groovy 0.8 kB
- grails8345/grails-app/.../UrlMappings.groovy 0.2 kB
- grails8345/grails-app/.../resources.groovy 0.0 kB
- grails8345/.../PersonController.groovy 4 kB
- grails8345/grails-app/.../Person.groovy 0.1 kB
- grails8345/.../messages.properties 3 kB
- grails8345/.../messages_da.properties 3 kB
- grails8345/.../messages_de.properties 4 kB
- grails8345/.../messages_es.properties 3 kB
- grails8345/.../messages_fr.properties 2 kB
- grails8345/.../messages_it.properties 2 kB
- grails8345/.../messages_ja.properties 2 kB
- grails8345/.../messages_nl.properties 3 kB
- grails8345/.../messages_pt_BR.properties 3 kB
- grails8345/.../messages_pt_PT.properties 3 kB
- grails8345/.../messages_ru.properties 4 kB
- grails8345/.../messages_th.properties 5 kB
- grails8345/.../messages_zh_CN.properties 2 kB
- grails8345/grails-app/views/error.gsp 2 kB
- grails8345/grails-app/views/index.gsp 4 kB
- grails8345/grails-app/.../layouts/main.gsp 0.8 kB
- grails8345/grails-app/.../person/create.gsp 2 kB
-
Hide
- grailsApp.zip
- 21/Nov/11 1:23 PM
- 4.23 MB
- Michael Hatch
-
- CustomerRelationsDesk/.classpath 1 kB
- CustomerRelationsDesk/.project 0.9 kB
- CustomerRelationsDesk/application.properties 0.2 kB
- CustomerRelationsDesk/.../HibernateGrailsPlugin.groovy 2 kB
- CustomerRelationsDesk/.../LICENSE 0.6 kB
- CustomerRelationsDesk/.../application.properties 0.1 kB
- CustomerRelationsDesk/.../dependencies.groovy 1 kB
- CustomerRelationsDesk/.../plugin.xml 5 kB
- CustomerRelationsDesk/.../_Install.groovy 0.4 kB
- CustomerRelationsDesk/.../_Uninstall.groovy 0.2 kB
- CustomerRelationsDesk/.../_Upgrade.groovy 0.4 kB
- CustomerRelationsDesk/.../attach.gdoc 0.1 kB
- CustomerRelationsDesk/.../delete.gdoc 0.1 kB
- CustomerRelationsDesk/.../discard.gdoc 0.1 kB
- CustomerRelationsDesk/.../getDirtyPropertyNames.gdoc 0.1 kB
- CustomerRelationsDesk/.../getPersistentValue.gdoc 0.1 kB
- CustomerRelationsDesk/.../instanceOf.gdoc 0.1 kB
- CustomerRelationsDesk/.../isAttached.gdoc 0.1 kB
- CustomerRelationsDesk/.../isDirty.gdoc 0.1 kB
- CustomerRelationsDesk/.../lock.gdoc 0.1 kB
- CustomerRelationsDesk/.../merge.gdoc 0.1 kB
- CustomerRelationsDesk/.../methodMissing.gdoc 0.2 kB
- CustomerRelationsDesk/.../refresh.gdoc 0.1 kB
- CustomerRelationsDesk/.../save.gdoc 0.1 kB
- CustomerRelationsDesk/.../validate.gdoc 0.1 kB
- CustomerRelationsDesk/.../LICENSE 0.6 kB
- CustomerRelationsDesk/.../TomcatGrailsPlugin.groovy 1 kB
- CustomerRelationsDesk/.../application.properties 0.1 kB
- CustomerRelationsDesk/.../.gitignore 0.0 kB
- CustomerRelationsDesk/.../catalina-ant.jar 48 kB
-
- constraints fail.jpg
- 146 kB
- 21/Nov/11 1:06 PM
-
- persistence success.jpg
- 94 kB
- 21/Nov/11 1:08 PM
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits