Projekt

Allgemein

Profil

Aktionen

GX-Bug #70164

offen

Das 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

Von Josua Michalak vor fast 2 Jahren hinzugefügt. Vor mehr als 1 Jahr aktualisiert.

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:

  1. Head to Modules > Module-Center
  2. Install the Cookie Consent Module
  3. Go to Purposes
  4. Open the current tab in a new tab, so that you have two tabs open.
  5. Click on "Add a new Purpose" and fill out the details.
  6. In the second tab, log out of the shop.
  7. Click on "Create" to try to add the new purpose.
  8. (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 #1

Von Josua Michalak vor fast 2 Jahren aktualisiert

  • Status wurde von Gemeldet zu Anerkannt geändert
Aktionen #2

Von Hilke Müller vor mehr als 1 Jahr aktualisiert

  • Thema wurde von Submitting a new purpose in the cookie consent manager with an expired session results in a error after logging back in zu Das 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 geändert
Aktionen

Auch abrufbar als: Atom PDF