nucypher / zerodb

*This project is no longer actively maintained. If you'd like to become the maintainer, please let us know.* ZeroDB is an end-to-end encrypted database. Data can be stored and queried on untrusted database servers without ever exposing the encryption key. Clients can execute remote queries against the encrypted data without downloading all of it or suffering an excessive performance hit.
GNU Affero General Public License v3.0
1.56k stars 102 forks source link

Persistent objects lose _p_uid attribute after commit #39

Closed michwill closed 8 years ago

michwill commented 8 years ago

When observed:

michwill commented 8 years ago

This is observed only when actual changes to objects are committed. Example addition to test_db.py::test_all_uid which fails:

    objs = list(db[Page].all())
    obj = objs[0]
    obj.title += " temp"
    transaction.commit()
    for obj in objs:
        assert hasattr(obj, "_p_uid")
michwill commented 8 years ago

Oops, the fix fails in python3 (setattr falls into infinite recursion?)