Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when page end date is in the past #55

Open
dmitryd opened this issue Feb 8, 2023 · 0 comments
Open

Exception when page end date is in the past #55

dmitryd opened this issue Feb 8, 2023 · 0 comments

Comments

@dmitryd
Copy link
Contributor

dmitryd commented Feb 8, 2023

When the page end date is in the past clicking on the "Form export" module shows exception regardless of the selected page in the page tree.

Problem happens because Frappant\FrpFormAnswers\Utility\BackendUtility::filterPagesForAccess() calls $page = $pageRepository->getPage($pid); but does not validate that it returns the result. It can return empty array, which is passed to self::getBackendUserAuthentication()->doesUserHaveAccess($page, 1), which fails inside TYPO3\CMS\Core\Authentication\BackendUserAuthentication::isInWebMount() because the value is empty array.

Stack trace:
TYPO3-Exception.html.zip

I will make the PR with the fix.

dmitryd pushed a commit to dmitryd/frp_form_answers that referenced this issue Feb 8, 2023
dmitryd pushed a commit to dmitryd/frp_form_answers that referenced this issue Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant