owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.37k stars 180 forks source link

Events contain Reference instead ResourceID #9481

Open kobergj opened 3 months ago

kobergj commented 3 months ago

Most events in ocis contain the file reference to uniquely identify the resource. This reference contains the id of the space root and the path in the space. This is problematic. When the resource gets renamed or moved, then trying to get the resource through the old reference will fail. This is especially a problem for services like activitylog who need to get resource details after the move.

Fixing this is unfortunately not easy. Events are created in the eventmiddleware, where the resourceID is not available. We need to move the creation of all file related events to decomposedfs and remove them from the eventsmiddleware.

Acceptance Criteria:

cc @butonic