What actually happens when you insert into the cr_revisionsi view? My site is OpenACS 5.2beta-ish and I just noticed that a couple of the CR automated tests don't work. It boils down to this:
select content_item__new('cr_test_item8AD9BD6DD',null,'41769',
NULL,NULL,'310',NULL,'127.0.0.1',
'content_item','content_revision',NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,'file','13066');
select content_revision__new(null,null,null,null,null,'41769');
insert into cr_revisionsi (revision_id, object_type, item_id, object_package_id)
values ('41770', 'content_revision', '41769', '13066');
The content_revision__new call works fine, but the 'insert into cr_revisionsi' bombs with:
ERROR: null value in column "item_id" violates not-null constraint
which is weird because the item_id is specified as 41769. Is this going to cause me problems down the road? How do I go about debugging where this error is actually coming from (i.e. what exactly happens when you insert into cr_revisionsi).