The pre Update checker uses a hardcoded database (version) check?
https://github.com/joomla/joomla-cms/blob/3.9-dev/administrator/components/com_joomlaupdate/models/default.php#L1215
Uses the supported_databases
feature of the joomla update definitions. see: #12355
users a hardcoded database (version) check
https://github.com/joomla/joomla-cms/blob/3.9-dev/administrator/components/com_joomlaupdate/models/default.php#L1215
Labels |
Added:
?
|
Category | ⇒ | com_installer |
Status | New | ⇒ | Discussion |
@zero-24 I think to have this hardcoded isn't a problem because we don't remove database support so often. This is rather a unique case. To go through the hassle of making it dynamic for what purpose? That one day we may remove PostgreSQL?
I think we shouldn't spend time more time on this.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-09-09 19:47:58 |
Closed_By | ⇒ | zero-24 |
We had to hardcode this special case to be able to deliver a custom error message in case the old database version are not compatible with J! 4. (#17849). The current architecture of JUpdate does not allow us to retrieve the reason for "We can't find a download URL".
We can't use
supported_databases
, because we can't get this information in case of non-compatibility.My suggestion: Revert #17849 and remove the databasechecks from #17742. Then re-structure JUpdate to allow more than one error case.
@roland-d @icampus @brianteeman