View Issue Details

IDProjectCategoryView StatusLast Update
0007137OXID eShop (all versions)2.3. Extensions (modules, themes)public2020-07-15 14:46
ReporterDanielS Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version6.2.1 
Fixed in Version6.2.2 
Summary0007137: unable to uninstall module with metadata file not in package root folder
DescriptionIn our module packages the module files are located in a separate subdirectory (e.g. "src"). This is configured in the composer.json in "source-directory". The installation of the module works without errors. Uninstalling with composer (composer remove d3/[packageid]) results in the following error:

[InvalidArgumentException]
File /var/www/html/.../vendor/d3/[packageid]/metadata.php is not readable or not even a file.

However, the storage location of metadata.php is /var/www/html/.../vendor/d3/[packageid]/src/metadata.php
Steps To Reproduce- create a module with defined source-directory
- install the module with "composer require [vendor]/[packageid]"
- try to remove the module with "composer remove [vendor]/[packageid]"

Additional InformationException trace:
 () at /var/www/html/.../vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Module/MetaData/Dao/MetaDataProvider.php:97
 OxidEsales\EshopCommunity\Internal\Framework\Module\MetaData\Dao\MetaDataProvider->getData() at /var/www/html/.../vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Module/MetaData/Dao/ModuleConfigurationDao.php:55
 OxidEsales\EshopCommunity\Internal\Framework\Module\MetaData\Dao\ModuleConfigurationDao->get() at /var/www/html/.../vendor/oxid-esales/oxideshop-ce/source/Internal/Framework/Module/Install/Service/ModuleInstaller.php:85
 OxidEsales\EshopCommunity\Internal\Framework\Module\Install\Service\ModuleInstaller->uninstall() at /var/www/html/.../vendor/oxid-esales/oxideshop-composer-plugin/src/Installer/Package/ModulePackageInstaller.php:56
 OxidEsales\ComposerPlugin\Installer\Package\ModulePackageInstaller->uninstall() at /var/www/html/.../vendor/oxid-esales/oxideshop-composer-plugin/src/Installer/PackageInstallerTrigger.php:90
 OxidEsales\ComposerPlugin\Installer\PackageInstallerTrigger->uninstallPackage() at phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php(196) : eval()'d code:105
 OxidEsales\ComposerPlugin\Plugin_composer_tmp1->uninstallPackage() at n/a:n/a
 call_user_func() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:164
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:116
 Composer\EventDispatcher\EventDispatcher->dispatchPackageEvent() at phar:///usr/local/bin/composer/src/Composer/Installer.php:601
 Composer\Installer->doInstall() at phar:///usr/local/bin/composer/src/Composer/Installer.php:232
 Composer\Installer->run() at phar:///usr/local/bin/composer/src/Composer/Command/RemoveCommand.php:155
 Composer\Command\RemoveCommand->execute() at phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php:245
 Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:835
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:281
 Composer\Console\Application->doRun() at phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:117
 Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer/src/Composer/Console/Application.php:113
 Composer\Console\Application->run() at phar:///usr/local/bin/composer/bin/composer:61
 require() at /usr/local/bin/composer:24
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP Version7.1
Database VersionNot defined

Activities

DanielS

2020-05-16 00:41

reporter   ~0013225

Last edited: 2020-05-16 00:42

Pull request: https://github.com/OXID-eSales/oxideshop_ce/pull/797

QA

2020-05-19 11:49

administrator   ~0013227

The development team will work on the case.

-MF

Igor Iegupov

2020-07-15 14:46

reporter   ~0013267

Fixed in b-6.2.x