Project

General

Profile

Actions

Bug #49722

closed

EM: Exception if uninstalling an extension if other installed extensions depend on it

Added by Franz Holzinger almost 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extension Manager
Target version:
-
Start date:
2013-07-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The EM crashes in an uncaught exception if static_info_tables is uninstalled.


Uncaught TYPO3 Exception
#1342554622: Cannot deactivate extension static_info_tables - The extension(s) party,sr_feuser_register depend on it (More information)

TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException thrown in file
/var/www/html/typo3_src-6.1.1/typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php in line 156.

10 TYPO3\CMS\Extensionmanager\Utility\InstallUtility::uninstall("static_info_tables")

/var/www/html/typo3_src-6.1.1/typo3/sysext/extensionmanager/Classes/Controller/ActionController.php:

00080: if (in_array($extension, $installedExtensions)) {
00081: // uninstall

00082: $this->installUtility->uninstall($extension);

00083: } else {
00084: // install

9 TYPO3\CMS\Extensionmanager\Controller\ActionController::toggleExtensionInstallationStateAction("static_info_tables")

8 call_user_func_array(array, array)

/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:

00275: $validationResult = $this->arguments->getValidationResults();
00276: if (!$validationResult->hasErrors()) {

00277: $actionResult = call_user_func_array(array($this, $this->actionMethodName), $preparedArguments);

00278: } else {
00279: $methodTagsValues = $this->reflectionService->getMethodTagsValues(get_class($this), $this->actionMethodName);

7 TYPO3\CMS\Extbase\Mvc\Controller\ActionController::callActionMethod()

/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php:

00177: $this->initializeView($this->view);
00178: }

00179: $this->callActionMethod();

00180: }
00181:

6 TYPO3\CMS\Extbase\Mvc\Controller\ActionController::processRequest(TYPO3\CMS\Extbase\Mvc\Web\Request, TYPO3\CMS\Extbase\Mvc\Web\Response)

/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php:

00098: $controller = $this->resolveController($request);
00099: try {

00100: $controller->processRequest($request, $response);

00101: } catch (\TYPO3\CMS\Extbase\Mvc\Exception\StopActionException $ignoredException) {
00102: }

5 TYPO3\CMS\Extbase\Mvc\Dispatcher::dispatch(TYPO3\CMS\Extbase\Mvc\Web\Request, TYPO3\CMS\Extbase\Mvc\Web\Response)

/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Mvc/Web/BackendRequestHandler.php:

00045: /** @var $response \TYPO3\CMS\Extbase\Mvc\ResponseInterface */
00046: $response = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Mvc\\Web\\Response');

00047: $this->dispatcher->dispatch($request, $response);

00048: return $response;
00049: }

4 TYPO3\CMS\Extbase\Mvc\Web\BackendRequestHandler::handleRequest()

/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Core/Bootstrap.php:

00206: $requestHandler = $requestHandlerResolver->resolveRequestHandler();
00207:

00208: $response = $requestHandler->handleRequest();

00209: // If response is NULL after handling the request we need to stop
00210: // This happens for instance, when a USER object was converted to a USER_INT

3 TYPO3\CMS\Extbase\Core\Bootstrap::handleRequest()

/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Core/Bootstrap.php:

00195: public function run($content, $configuration) {
00196: $this->initialize($configuration);

00197: return $this->handleRequest();

00198: }
00199:

2 TYPO3\CMS\Extbase\Core\Bootstrap::run("", array)

/var/www/html/typo3_src-6.1.1/typo3/sysext/extbase/Classes/Core/ModuleRunner.php:

00079:
00080: $bootstrap = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Core\\BootstrapInterface');

00081: $content = $bootstrap->run('', $configuration);

00082: print $content;
00083:

1 TYPO3\CMS\Extbase\Core\ModuleRunner::callModule("tools_ExtensionmanagerExtensionmanager")

/var/www/html/typo3_src-6.1.1/typo3/mod.php:

00045: foreach ($TBE_MODULES['_dispatcher'] as $dispatcherClassName) {
00046: $dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager')->get($dispatcherClassName);

00047: if ($dispatcher->callModule($temp_M) === TRUE) {

00048: $isDispatched = TRUE;
00049: break;


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #48082: Uploading local extension doesn't honor dependenciesClosedAlexander Opitz2013-05-09

Actions
Has duplicate TYPO3 Core - Bug #46998: Deactivating extension which is needed throws an exceptionClosed2013-04-06

Actions
Has duplicate TYPO3 Core - Bug #50317: ExtensionManager - Uncaught TYPO3 Exception when uninstalling extensionRejected2013-07-23

Actions
Actions #1

Updated by Christian Kuhn almost 11 years ago

  • Subject changed from EM: Uncaught TYPO3 Exception if you uninstall static_info_tables to EM: Exception if uninstalling an extension if other installed extensions depend on it

Yeah, that happens if some other extension is installed that has a dependency to static_info_tables. In this case currently em detects the conflict and throws the exception, but does not render a happy little error message.

Actions #2

Updated by Wouter Wolters almost 11 years ago

  • Status changed from New to Accepted
Actions #3

Updated by Gerrit Code Review almost 11 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22162

Actions #4

Updated by Gerrit Code Review almost 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22162

Actions #5

Updated by Gerrit Code Review almost 11 years ago

Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/22578

Actions #6

Updated by Gerrit Code Review almost 11 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/22579

Actions #7

Updated by Wouter Wolters almost 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF