View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007137 | OXID eShop (all versions) | 2.3. Extensions (modules, themes) | public | 2020-05-16 00:34 | 2020-07-15 14:46 |
Reporter | DanielS | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 6.2.1 | ||||
Fixed in Version | 6.2.2 | ||||
Summary | 0007137: unable to uninstall module with metadata file not in package root folder | ||||
Description | In 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 Information | Exception 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 | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | 7.1 | ||||
Database Version | Not defined | ||||
|
Pull request: https://github.com/OXID-eSales/oxideshop_ce/pull/797 |
|
The development team will work on the case. -MF |
|
Fixed in b-6.2.x |