n92
n92

Reputation: 7602

How to resolve errors in grails application after upgrading to 2.3.6

I recently updated my grails project from 2.0.4 to 2.3.6, which is giving some errors while saving a form which contains multipart data (file attachments),

Its giving me the error for the file attachment fields like rejected value: grails.validation.ValidationException: Validation Error(s) occurred during save():

And its giving me the error in Requestmap.groovy as well, below is the error

Requestmap.url.unique.error

In version 2.0.4, its working fine without any errors.

How to resolve these issues?

Upvotes: 0

Views: 129

Answers (1)

thewidgetsmith
thewidgetsmith

Reputation: 194

Grails documentation contains tips on updating from one version to another. In your case you are making a large jump so you may have to refer to the following:

Upgrade from versions previous to 2.2

Upgrade from 2.2 to 2.3

Both issues you have are validation errors. You can see the validation errors in detail by executing:

Requestmap requestmap = new Requestmap([...])
requestmap.validate()
println requestmap.errors

You can find additional details about validation errors in the docs.

Upvotes: 2

Related Questions