I'm currently working with Magento Commerce 2.4.4p4, and I've encountered an issue when accessing "Marketing > All Reviews." Upon reaching the review page, it appears that the session is getting invalidated. Consequently, any interaction with the page or a simple refresh results in the user being automatically logged out.
I'm uncertain about the root cause of this problem, but I've traced it back to a specific location in the source code. The culprit seems to be the following line in the file vendor/magento/module-review/Controller/Adminhtml/Product/Index.php
:
$resultPage->addContent($resultPage->getLayout()->createBlock(\Magento\Review\Block\Adminhtml\Main::class));
My attempt to debug led me to the block file at vendor/magento/module-review/Block/Adminhtml/Main.php. However, I'm struggling to comprehend how the content in this file functions.
If anyone here has insights into both the solution for this issue and an understanding of its origin, your assistance would be greatly appreciated.