I have a simple Grails web application with a couple of controllers. All works fine with grails 3.2.6, but after upgrading to Grails 3.3.3 I notice a strange behavior on HTML form post action.
For example, for a domain object called Subscriber, after editing an instance I see on my browser navigation bar:
subscriber/show/16?_method=PUT&version=2&username=test[......]
The controller snippet (a standard scaffolding controller) is
@Transactional
def update(Subscriber subscriber) {
if (subscriber == null) {
transactionStatus.setRollbackOnly()
notFound()
return
}
if (subscriber.hasErrors()) {
transactionStatus.setRollbackOnly()
respond subscriber.errors, view:'edit'
return
}
subscriber.save(flush:true)
request.withFormat {
form multipartForm {
flash.message = message(code: 'default.updated.message', args: [message(code: 'subscriber.label', default: 'Subscriber'), subscriber.id])
redirect subscriber
}
'*'{ respond subscriber, [status: OK] }
}
}