Closed jywarren closed 10 years ago
I suspect .valid? is not triggering custom validations:
https://github.com/jywarren/plots2/blob/master/app/models/drupal_node.rb#L3
https://github.com/jywarren/plots2/blob/master/app/models/drupal_node.rb#L405
do research: https://duckduckgo.com/?q=.valid%3F+rails+custom+validation
This occurred once on the production site, with a "title too long" validation failure. it had to be cleaned up manually
Can we reproduce this problem? As in, is there a good way to simulate a failed note post? Even if we have to write one or two lines of code to make it break.
I'd like to make sure we don't get this problem with a proper InnoDB backend on node. The other tables involved (url_alias and node_counter) might also need to be InnoDB before this problem is fully resolved.
This hasn't happened for so long that I feel we can close it. It must've been solved or bypassed!
Caveat -- this is only if there is some bug in new code which causes note posting to fail... but still bad. It's unclear to me how this happens, given that the whole thing is wrapped in a transaction: