• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: inheritance and delete rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inheritance and delete rules


  • Subject: Re: inheritance and delete rules
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 5 Apr 2004 13:47:23 -0700

On Apr 5, 2004, at 1:21 PM, Anjo Krank wrote:

Am 05.04.2004 um 22:15 schrieb Chuck Hill:

Bad, bad, bad bug. When a deletion fails due to validation (not sure about server errors) the EC is rolled back way too far.

It's not a rollback. It's that the EOs are re-inserted upon an unsuccessful delete. I have a DENY rule that might fail if there are EOs in a relationship and these EOs are first "deleted" and then re-inserted into the EC.


It calls undo too many times on the undoManager. The results are very unpredictable and alway very wrong.


This behaviour was so, like uh, nuts that I thought I'd ask first if this is intended before posting a bug report. I mean I can't be the first guy to have a deny rule fail, can I?


I asked my self this very question when I got bit by this. I came to the conclusion that very few people are using delete rules or that very few people write them so they can fail. The best work around is to create an ec sub-class that calls undoManager.removeAllActions() - think that is the name - after a successful save.


Chuck _______________________________________________ webobjects-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev Do not post admin requests to the list. They will be ignored.


References: 
 >inheritance and delete rules (From: Jonathan Rochkind <email@hidden>)
 >Re: inheritance and delete rules (From: Anjo Krank <email@hidden>)
 >Re: inheritance and delete rules (From: Chuck Hill <email@hidden>)
 >Re: inheritance and delete rules (From: Anjo Krank <email@hidden>)

  • Prev by Date: Re: inheritance and delete rules
  • Next by Date: Re: Synchronizing data displayed by two instances of my app
  • Previous by thread: Re: inheritance and delete rules
  • Next by thread: preserve login from app to app?
  • Index(es):
    • Date
    • Thread