Issue Bug Closed

#107905User can not create versioned sys_file_metadata from Workspaces

Christian Rath-Ulrich 10/29/25, 11:34 updated 09/02/26, 20:31

Description

Users cannot create versioned sys_file_metadata from workspaces

If a user wants to edit a sys_file_metadata entry in the file list from a workspace, a new versioned entry is created on pid 0.
The error ‘The given page record is invalid. Missing uid.’ appears, so editing sys_file_metadata from workspace is not possible, regardless of whether the user actually has the rights to write records on pid 0.

The DataHandler checks whether the user has permissions for the specified pid ($this->hasPagePermission). However, since the sys_file_metadata entries have pid 0, no stored pages record is found (BackendUtility::getRecord(“pages”, $row[“pid”])). As a result, the hasPagePermission check fails. [DataHandler line 6520]
Idea:

- if (!$this->hasPagePermission(Permission::PAGE_SHOW, $pageRecord)) {
+ if (($row[“pid”] === 0 && !BackendUtility::isRootLevelRestrictionIgnored($table)) && !$this->hasPagePermission(Permission::PAGE_SHOW, $pageRecord)) {

Reviews 1