This commit (part of TIP 42, 43, 53 by Timo) has introduced a bug on HEAD.
For example, you will run into trouble if you have an application based on Workflow and your workflow cases are not associated with a cr_item but with a plain acs_object.
workflow_case_log_entry__new() gets called when a new case is created and this function in turn calls content_item__new() (the one with 16 params which then directly calls the now modified 17 param version).
The part that causes the error is this, at line 359:
if new__package_id is null then
v_package_id := acs_object__package_id(content_item__get_root_folder(v_parent_id));
else
v_package_id := new__package_id;
end if;
If you try "SELECT content_item__get_root_folder(719);" with a plain object id you will get this:
ERROR: -20000: Could not find a root folder for item ID 719. Either the item does not exist or its parent value is corrupted.
Any ideas how this should be solved?
TIA.