[TYPO3-typo3org] Loss of dependencies and constraints in TER

Daniel Brüßler info at -remove-patchworking.de
Wed Jun 6 14:37:19 CEST 2007


Hello Elmar,

I have two ideas what can be possible. Maybe Robert has changed the
webservice for uploading: maybe the name of the dependency-attribute has
changed and so the data is falling into nirvana.

Anothing could be the fact that we had TWO dependency-settings in
emconf: the old one $EM_CONF[$_EXTKEY]['dependencies'] and the new one
$EM_CONF[$_EXTKEY]['constraints']['depends'] . Could be that robert has
skipped the old one in TER ;-)

If you live near Frankfurt and know Suzette Hattingh than have a visit
at the conference "konferenz2007" the next weekend! (search with google
for it)

kind regards
Daniel Brüßler




Elmar Hinz schrieb:
> Hi Daniel,
> 
>> Hm. I think it's a bug in the em, not in a TER-webservice.
>>
> 
> You are right. One should never forget that there is always a second side.
> So the problem may indeed be caused by em.
> 
>>  * function importExtInfo($extKey, $version='')
>>  * function fetchMetaData($metaType)
>>  * function checkDependencies($extKey, $conf, $instExtInfo)
>>  * function uploadExtensionToTER($em)
> 
> The problem happens definitely on upload. The dependencies are lost in
> TER already, but also in ext_emconf.php after upload. So I guess some of
> this functions drop out.
> 
>> This looks very interesting (line 1732):
>> // check dependencies, act accordingly if ext is loaded
>> list($instExtInfo,)=$this->getInstalledExtensions();
>> $depStatus = $this->checkDependencies($extKey, $EM_CONF, $instExtInfo);
> 
> I can hunt the bug down to the same function, but called from line 1843 in
> showExtDetails.
> 
> $list doesn't contain the dependencies under all circumstances. 
> 
> It's strange. I can update other informations in ext_emconf.php and the
> alterations appear in $list. Only dependencies stay empty until  ... until
> what event exactly ???
> 
> Regards
> 
> Elmar


More information about the TYPO3-team-typo3org mailing list