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

Key: GRAILS-1814
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Graeme Rocher
Reporter: René de Bloois
Votes: 0
Watchers: 1
Operations

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

SQLException during update in a scaffolded controller is ignored, application continues as if nothing is wrong

Created: 09/Nov/07 10:05 AM   Updated: 09/Nov/07 10:05 AM
Component/s: Persistence, Scaffolding
Affects Version/s: 1.0-RC1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File stacktrace.txt (48 kb)

Environment: Controller with scaffold = true, readonly table


 Description  « Hide
If by accident a table is readonly (only GRANT SELECT) an exception is generated when pressing 'update' in the 'Edit XXX' screen.

When using a scaffolded controller (scaffold = true), this exception is logged, but then it disappears. The user sees nothing, only the screen that pops up after doing the update.

I would expect some kind of indication on the screen that something has gone horribly wrong.
Could be just a stacktrace.

I think this exception should propogate, not be swallowed, because it is an exceptional situation that should be presented to the user immediately.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.