View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0007309||OXID eShop (all versions)||7. --- Other tools --------------||public||2022-03-08 09:17||2022-03-08 17:32|
|Target Version||Fixed in Version|
|Summary||0007309: Aborted Composer uninstallation with autoloaded packages|
|Description||We use 3rd party packages in our OXID modules that set autoload entries in Composer. |
Example: https://packagist.org/packages/firephp/firephp-core#v0.5.3 with the autoload file "lib/FirePHPCore/fb.php".
When uninstalling the OXID module, the Composer process terminates with the following message:
require(.../vendor/composer/../firephp/firephp-core/lib/FirePHPCore/fb.php): failed to open stream: No such file or directory
The uninstallation cannot be completed.
Other package constellations are also affected by this with appropriate error messages.
Translated with www.DeepL.com/Translator (free version)
|Steps To Reproduce||Our test environment:|
Apache, PHP 7.4, OXID EE 6.4.1 (but probably reproducible in older versions as well), oxid-esales/oxideshop-composer-plugin v5.2.0.
composer require d3/extsearch && composer remove d3/extsearch
|Additional Information||In order to be able to resolve the OXID namespaces, the Composer Plugin loads the Composer Autoloader for certain package types. However, due to the ongoing uninstallation process, this autoloader receives outdated data. If the autoloader is called for every package, this behaviour does not happen.|
Screenshot-2022-03-08-091134_2.jpg (366,585 bytes)
our test systems do not run any additionally required software like the IonCube loader. Therefore I'm unable to install the mentioned module. I installed the d3/oxid-sql-logger, which is the package using the mentioned firephp/firephp-core package. While uninstalling it again, I did not encounter any issues. Then I created a test module, required the firephp package and still did not run into problems. May you be able to provide any test module that is not encrypted?
Nevertheless the reported issues sounds similar to the issue#7123:
Can you confirm this? Also your additional information is pointing to the behavior of the OXID Composer Plugin, are you able to provide any specific method that behaves wrong in your opinion?
- sp -