Projekt

Allgemein

Profil

Aktionen

GX-Bug #68305

geschlossen

Drittanbieter Module sind nicht mehr kompatibel wenn eine Überladung vom AdminApplicationTopExtenderComponent benutzt wird / Third-party modules are no longer compatible when an overload is used by the AdminApplicationTopExtenderComponent

Von Till Tepelmann vor etwa 3 Jahren hinzugefügt. Vor mehr als 2 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Dringend
Zugewiesen an:
Alexandre Ataides
Kategorie:
Adminbereich
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.3.1.0, 4.3.1.0 RC1, 4.3.1.0 beta1, 4.3.1.0 beta2, 4.3.1.0 beta3, 4.3.2.0, 4.3.2.0 beta1, 4.3.2.1, 4.3.3.0, 4.3.3.0 beta1, 4.3.3.1
Release Notes Langtext:

Drittanbieter Module sind wieder mit AdminApplicationTopExtenderComponent kompatibel


Beschreibung

Wenn man eine Überladung des AdminApplicationTopExtenderComponent nutzt, ist die Methode proceed nicht mehr kompatibel mit allen bekannten und im Umlauf befindtlichen Drittanbieter Modulen.

Kann wie folgt reproduziert werden:

  1. Eine Datei im Ordner /GXModules/Test/Test/Admin/Overloads/AdminApplicationTopExtenderComponent/ anlegen
  2. Die Datei sollte TestAdminApplicationTopExtenderComponent.inc.php heißen
  3. Folgenden Inhalt in die Datei einfügen:
<?php
class TestAdminApplicationTopExtenderComponent extends TestAdminApplicationTopExtenderComponent_parent
{
    public function proceed()
    {
        parent::proceed();

    }

}
  1. Cache für Modulinformationen unter "Toolbox->Cache" erneuern

Erwartetes Ergebnis:
Der Gambio Admin ist nach dem erneuern des Caches für Modulinformationen weiterhin nutzbar und wirft keine Fehler

Tatsächliches Ergebnis:
Der Gambio Admin ist nach dem erneuen des Caches für Modulinformnationen nicht mehr aufrufbar und nutzabr. Es wird ein Fatal Error angezeigt


When using an overload of the AdminApplicationTopExtenderComponent, the method proceed is no longer compatible with all known and circulating third party modules.

Can be reproduced as follows:

  1. create a file in the folder /GXModules/Test/Admin/Overloads/AdminApplicationTopExtenderComponent/.
  2. the file should be named TestAdminApplicationTopExtenderComponent.inc.php
  3. add the following content to the file:
<?php
class TestAdminApplicationTopExtenderComponent extends TestAdminApplicationTopExtenderComponent_parent
{
    public function proceed()
    {
        parent::proceed();

    }

}
  1. renew cache for module information under "Toolbox->Cache".

Expected result:
The Gambio Admin is still usable after renewing the cache for module information and does not throw any errors.

Actual result:
The Gambio Admin is no longer accessible and usable after refreshing the cache for module information. A fatal error is displayed


Declaration of TestAdminApplicationTopExtenderComponent::proceed() must be compatible with SetupWizardShippingModuleInstalled::proceed(): void

Aktionen

Auch abrufbar als: Atom PDF