#99462Impexp extension functionality for non-admin users not working
Description
There is a bug in core impexp extension that doesn’t allow to use export functionality for the non-admin users even when options.impexp.enableExportForNonAdminUser is enabled:
Bug explanation:
EXT:impexp – ImportExportController in the “main” method tries to resolve current page id:
$this->id = (int)($parsedBody['id'] ?? $queryParams['id'] ?? 0);
that always leads to 0 because “id” param is not passed to the mentioned request as it is expected. After that there is a page access check:
$this->pageInfo = BackendUtility::readPageAccess($this->id, $this->permsClause) ?: [];
that always returns empty array for non-admin user because non-admin user can’t have access to root page (ID=0) in anyway. As a result we get “You don’t have access to this page.” error.
Reviews 1
History 03
-
Gerrit Code Review pushed patch set 1 for main to change 87960 status
NewUnder Review <span data-processor="relativetime" data-value="2025-01-31T12:25:52+00:00" > 01/31/25, 12:25 </span> -
Gerrit Code Review pushed patch set 2 for main to change 87960 <span data-processor="relativetime" data-value="2025-02-03T19:49:08+00:00" > 02/03/25, 19:49 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 87960 <span data-processor="relativetime" data-value="2026-09-17T18:33:18+00:00" > 09/17/26, 18:33 </span>