Re: new 1.2-M11 bug: "uniquing" seems broken

From: Mike Kienenberger (mkienen..mail.com)
Date: Wed Apr 12 2006 - 15:12:59 EDT

  • Next message: Mike Kienenberger: "Re: new 1.2-M11 bug: "uniquing" seems broken"

    On 4/12/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > Can't say whether this was fixed, as I didn't know it was broken :-)

    Yeah, I wanted to know if it was a known bug. Guess not.

    > Seriously, it is worth trying with the latest CVS version, as the
    > access stack is very different between the two.

    Looks like it is still broken -- see below.

    > If this still occurs, do you know what scenario causes it?

    I'm converting sets of data. I start with an empty database. During
    one record set, I create a new contact record and I create a mailing
    address and assign it to the contact. This is a to-one relationship.
      This record set gets committed.

    Later, I convert another record set with the same contact info. I
    find the contact record in the database. I find the mailing address
    in a separate database query. I then try to verify that this mailing
    address is not in the existing contact -- this is where the situation
    above was uncovered.

    So basically:

    create contact. create mailing address. associate. commit.

    lookup contact. lookup mailing address. Change mailing address
    description field. Compare to contact addresses.

    At this point contact has one committed copy of mailing address while
    the current mailing address is modified.

    =================================================

    State with the latest cvs snapshot (which doesn't trigger CAY-501 --
    dependent key commits are working for me)

    this= Address (id=180)
            objectContext= DataContext (id=169)
            objectId= ObjectId (id=181)
            persistenceState= 3
            snapshotVersion= -9223372036854770911
            values= HashMap (id=182)
    arg0= Address (id=76)
            objectContext= DataContext (id=169)
            objectId= ObjectId (id=184)
            persistenceState= 4
            snapshotVersion= -9223372036854770899
            values= HashMap (id=185)

    {<ObjectId:Address, ADDRESS_ID=1783>; committed;
    [contactPhysicalAddressList=>?; contactMailingAddressList=>(..);
    description=>Mailing; streetAddress=>660 Farmers Loop Rd. Fbks, Ak
    99712; streetNumber=>null; zip=>null; contactOtherAddressList=>?;
    city=>null; apt=>null]}

    {<ObjectId:Address, ADDRESS_ID=1783>; modified; [stateProvince=>null;
    contactPhysicalAddressList=>?; contactMailingAddressList=>?;
    description=>Mailing; streetNumber=>null; streetAddress=>660 Farmers
    Loop Rd. Fbks, Ak 99712; zip=>null; contactOtherAddressLi



    This archive was generated by hypermail 2.0.0 : Wed Apr 12 2006 - 15:13:23 EDT