Bug #33896

$BE_USER->uc (User Settings)->moduleData->tools_em->extMirrors is not changed on repository change

Added by Philipp Gampe over 1 year ago. Updated about 1 year ago.

Status:New Start date:2012-02-13
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:Extension Manager
Target version:-
TYPO3 Version:4.7 Complexity:
PHP Version:
Votes: 0

Description

If you have more than one repository, you are locked to work with the one selected on first load (or em settings save).

There is no way of actually change the repository.
Even worse, if you delete a repository, you will still stick to that one if it was selected last.

Note: I did reload the EM.
The only way out is to clear UC array, but this also resets all other BE settings.

em_repositorylist.js.PATCH - Patch for em_repositorylist.js (598 Bytes) Alexander Jahn, 2012-04-17 10:12

index.php.PATCH - Patch for SC_mod_tools_em_index (1.7 kB) Alexander Jahn, 2012-04-17 10:12

History

Updated by Alexander Jahn about 1 year ago

I found the same error today when setting up a custom repository.

The only possibility to use a repository different from the default one is setting

$GLOBALS['TYPO3_CONF_VARS']['EXT']['em_mirrorListURL'] = 'http://example.org/mirrors.xml.gz';
$GLOBALS['TYPO3_CONF_VARS']['EXT']['em_wsdlURL'] = 'http://example.org/wsdl/tx_ter_wsdl.php';

in localconf.php.

That, however, forces EM to use this repository only and switching to another one still remains impossible.

Updated by Alexander Jahn about 1 year ago

I cobbled together a fix since I need this to work now. It does work but is more a hack than a real fix.
However, it should serve fine as a starting point for a proper fix.

There is one severe inconsistency i stumbled upon:
Both SC_mod_tools_em_index and tx_em_Settings implement a method getMirrorURL(). Both methods have more or less similar functionality, however the one in tx_em_Settings seems to be more articulate.

NOTE: This fix is for TYPO3 4.6.7, I have not tested in other versions!

Also available in: Atom PDF