We decided that
TRUNK-3069 will not be back ported to 1.9 so it needs to be reverted in 1.9 first.
In 1.9 we introduced an AdministrationService.validateInManualFlushMode(Object) method. In fact all validation ought to behave that way, so we want to rename the method to just AdministrationService.validate.
In addition, we have the problem that when our controllers do something like
this can actually lead to having data prematurely flushed to the database.
We need to let them instead do one of these, which need to run in manual flush mode:
- ValidateUtil.validate(Object, Errors)
- Context.getAdministrationService().validate(Object, Errors)
Currently the AdministrationService method calls ValidateUtil, but it should probably be the other way around.