Steps to Reproduce
- Add 2 documents in the documents and media portlet in the control panel
- Check these tables (there should be 2 entries for each table): AssetEntry, DLFileEntry, DLFileVersion.
- Edit the title of the document that was just uploaded to the document library and publish. Notice that the DLFileVersion table contains the new entry.
- Go back to the document and add a related asset (select the other document) and publish. Check the AssetEntry table. You will now see a new row with a different classPK (the class uuid will be the same as another entry in the table).
If you check this classPK against the DLFileEntry table or the DLFileVersion table, you will not find any references.
Expected results: a new asset entry is not created
Actual results: a new asset entry is created, but doesn't reference anything