Issue Bug Resolved

#108658Soft references in sys_refindex are created for all workspaces, but only removed for current workspace

Sven Juergens 01/16/26, 16:06 updated 10/30/26, 16:20

Description

ReferenceIndex creates soft reference entries for all active workspaces, but DataHandler only updates the current workspace when editing records

When running `referenceindex:update`, soft references (typolink_tag, email, url) in RTE fields like `bodytext` are created for all active workspaces, even though the record only exists in the live workspace (t3ver_wsid=0).

When an editor removes a link in the backend (live workspace), only the sys_refindex entry for workspace=0 is removed. The entries for other workspaces remain as orphaned references.

This causes issues when trying to delete files: The file cannot be deleted because the system reports it is still referenced, even though the reference was removed.

1. Have a TYPO3 installation with the workspaces extension enabled
2. Create at least one workspace (e.g., “Draft”)
3. Create a news record
4. Add a link to a file in the bodytext field
5. Run `vendor/bin/typo3 referenceindex:update`
6. Check in filelist the refercences to this file
→ You will see multiple entries
7. Remove the link in the backend (live workspace)
8. Check file in filelist again, still a refercence
9. Try to delete the linked file → Error: “File is still referenced”

now run `vendor/bin/typo3 referenceindex:update` again fixes the problem, but it’s a problem for editors how want to delete files.

Reviews 2

Files 1

History 13

  1. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-30T16:20:14+00:00" > 10/30/26, 16:20 </span>

    Applied in changeset commit:fc4b5bff26905f72878bfea429603673ffbec75d.