?
avatar zero-24
zero-24
4 Sep 2017

Steps to reproduce the issue

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

Expected result

Uses the supported_databases feature of the joomla update definitions. see: #12355

Actual result

users a hardcoded database (version) check
https://github.com/joomla/joomla-cms/blob/3.9-dev/administrator/components/com_joomlaupdate/models/default.php#L1215

Additional comments

cc @SamuelSchepp, @Kev1n337, @DrDreave @wilsonge

avatar zero-24 zero-24 - open - 4 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Sep 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Sep 2017
Category com_installer
avatar SamuelSchepp
SamuelSchepp - comment - 5 Sep 2017

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

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Sep 2017
Status New Discussion
avatar roland-d
roland-d - comment - 9 Sep 2017

@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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17871.

avatar zero-24 zero-24 - change - 9 Sep 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-09-09 19:47:58
Closed_By zero-24
avatar zero-24 zero-24 - close - 9 Sep 2017

Add a Comment

Login with GitHub to post a comment