New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grails Scaffolding Update Constraint UI Bug #11280
Comments
i did the exact same thing in 3.2.13 and we got the correct response in the error message. This means somewhere in between it broke. i will look further CORRECTION The above is false. if you create a new object and try and save a value that should be unique, then you do get the correct message |
WORKAROUND In the sample project, if you delete The issues seems to be with the runtime generation of the gsps of the scaffold. I have tested this with service methods and when a unique value is saved, the error is generated properly in the domain object. When I render the errors back manually to the screen it will appropriately display the unique property error generated by the Gorm exception. We will look to see what the error is in the scaffold code. |
This issue is not a pressing issue, although it is a bug. I recommend we go with the workaround. I'll keep this issue open if someone wants to look into it further. Thank you |
Steps to Reproduce
Expected Behaviour
You should receive the standard grails property constraint error message when the web response is received.
Actual Behaviour
The update errors silently. The property is flipped back to its original value, the user is not notified of the error at all.
Environment Information
Example Application
The text was updated successfully, but these errors were encountered: