Bug #51182
closed
Depending on the latest version throws exception
Added by Jan Kiesewetter over 11 years ago.
Updated about 6 years ago.
Category:
Extension Manager
Description
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.
Files
- Status changed from New to Needs Feedback
For easy testing, please add a little test extension (just em_conf and required files).
Here is a testpackage with:
'depends' => array(
'typo3' => '6.1.0-0.0.0',
'extbase' => '6.1.0-0.0.0',
'fluid' => '6.1.0-0.0.0',
'realurl' => '1.12.6-0.0.0'
),
- Status changed from Needs Feedback to New
Verified with latest trunk.
- Status changed from New to Accepted
- Priority changed from Should have to Must have
- Complexity set to easy
- Status changed from Accepted to Under Review
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 )
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
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"
The version constraint is wrong. You may not have an empty part after the dash. The error message is almost right. The dependency is wrong.
Please see #58474 to track this bug.
- Status changed from Resolved to Closed
Also available in: Atom
PDF