Depending on the latest version throws exception
If i depend on the very latest version of an extension which has to be loaded from TER an exception is throw:
Could not resolve dependency for "realurl"
My depends array:
'depends' => array( 'typo3' => '6.1.0-0.0.0', 'extbase' => '6.1.0-0.0.0', 'fluid' => '6.1.0-0.0.0', 'linkvalidator' => '6.1.0-0.0.0', 'opendocs' => '6.1.0-0.0.0', 'recycler' => '6.1.0-0.0.0', 'scheduler' => '6.1.0-0.0.0', 'realurl' => '1.12.6-0.0.0' ),
Same if i skip the '-0.0.0'.
If i change the dependency to '1.12.5-0.0.0' the extension manager loads version 1.12.6 and it works.
Updated by Robert Vock over 7 years ago
I fixed the off-by-one error.
The query now uses greaterThanOrEqual() for the lowest version and lessThanOrEqual() for the highest version.
I am not quite sure, if lessThanOrEqual() for the highest version is correct. IS the highest version inclusive or exclusive?
This patch treats the highest version as inclusive, so it works with versions like TYPO3 4.7.99.
There is also another Bug when the extension repository never was updated.
You get the following Exception:
The extension realurl is not available from TER.
It would be better to show an info to the user, that he should update the extension repository. (Reported as #52051 )
Updated by Franz Holzinger almost 7 years ago
This bug is still present in the current TYPO3 6.2.1.
The extension to install has this ext_emconf.php:
'depends' => array( 'cms' => '', 'div2007' => '1.1.5-', ...
If I install div2007 1.1.5, then the installation of my extension fails.
Could not resolve dependency for "div2007"