Aktionen
GX-Bug #70164
offenDas Speichern eines Zwecks im Cookie Consent Manager mit abgelaufener Session erzeugt einen Fehler | Submitting a new purpose in the cookie consent manager with an expired session may result in an error
Status:
Anerkannt
Priorität:
Normal
Zugewiesen an:
-
Kategorie:
Cookie Consent
Zielversion:
-
% erledigt:
0%
Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.7.2.0 beta1
Release Notes Langtext:
Beschreibung
Submitting a new purpose in the cookie consent manager with an expired, invalid/logged out session results in an error after logging back in.¶
It tries to open
admin/admin.php?do=GambioCookieConsentPanelModuleCenterModule/createPurpose
with no arguments/parameters resulting in an error.
Steps to reproduce:
- Head to Modules > Module-Center
- Install the Cookie Consent Module
- Go to Purposes
- Open the current tab in a new tab, so that you have two tabs open.
- Click on "Add a new Purpose" and fill out the details.
- In the second tab, log out of the shop.
- Click on "Create" to try to add the new purpose.
- (You should get redirected to log back in again) Login again.
Expected:
The purpose should be created or it should just redirect you back to the "Purposes" tab of the cookie consent manager.
Actual:
Logging back in results in an error:
Unexpected error occurred... Message: Gambio\CookieConsentPanel\Services\Purposes\DataTransferObjects\PurposeWriterDto::__construct(): Argument #1 ($category) must be of type int, null given, called in /var/www/html/gxdev/GXModules/Gambio/CookieConsentPanel/Admin/Classes/Controllers/GambioCookieConsentPanelModuleCenterModuleController.inc.php on line 68 Code: 0 File: /var/www/html/gxdev/GXModules/Gambio/CookieConsentPanel/Shop/Classes/Services/Purposes/DataTransferObjects/PurposeWriterDto.inc.php Line: 65 │ * @throws PurposeNameCanNotBeEmptyException │ */ ├─ public function __construct( │ int $category, │ array $description, Trace: [0] /var/www/html/gxdev/GXModules/Gambio/CookieConsentPanel/Admin/Classes/Controllers/GambioCookieConsentPanelModuleCenterModuleController.inc.php:68 [1] /var/www/html/gxdev/GXEngine/Services/System/Http/HttpViewController.inc.php:148 [2] /var/www/html/gxdev/GXEngine/Services/System/Http/HttpViewController.inc.php:107 [3] /var/www/html/gxdev/GXEngine/Services/System/Http/HttpDispatcher.inc.php:71 [4] /var/www/html/gxdev/GXEngine/Services/System/Http/HttpService.inc.php:66 [5] /var/www/html/gxdev/admin/admin.php:15
Aktionen