We've warned you before about ACL propagation when you're changing the security in ALI. Heck, we even created a product to ease the pain of this important task. Today's bug is about another issue with security propagation.
Well, it's actually 2 bugs (maybe 3). Let me explain:
When you answer "yes" to that question about security propagation, a job is created. Here's the problem: the job is run as the user who created the folder, not the user changing the security. What if you later delete that user? Well, bug #1: automation server is hosed. You're going to get an error like this:

The Exception says "*** Job Operation #1 of 1 with ClassID 20 and ObjectID 898 cannot be run, probably because the operation has been deleted.", and the error's wrong (because it says "probably", I won't count this as a bug). The real problem in this case is that the folder's OWNER has been deleted, not the operation itself.
This gets me to Bug #2: when you delete a user, they're removed from all groups, but apparently they're not removed as OWNERS of any of the admin folder objects (and how could they? What should they revert back to?). Obviously, this is what causes the problem with automation server. If this one was fixed somehow, bug #1 would become irrelevant.
Bug #3 (this one I haven't confirmed yet, but is likely to exist given the testing and logs mentioned above): suppose Joe Content Manager creates an entire structure of folders. Then Joe's boss decides he shouldn't be an admin for one of the child folders (say, an "Executive Committee" folder) and removes his access. He changes the security and propagates it on that "Executive Committee" folder. Later, he wants to add Mary Executive to have privileges to the folder. He changes the ACL again and chooses to propagate. Here's the rub: because the job is run as Joe, and Joe no longer has access, the job fails, and Mary can not be added. In fact, it's likely that Joe can't even be added back, so that ACL is completely frozen unless the admin goes through every object and re-adds Joe back (or changes the owner of the folders through the DB). Have I mentioned LockDown?
Anyway, want the SQL Scripts to fix the owners on the various folders? Hit the jump.

