Skip to content

Make sure mariadb versions are correctly identified in the updater#26079

Merged
HLeithner merged 4 commits intojoomla:stagingfrom
zero-24:supported_databases_mariadb
Sep 5, 2019
Merged

Make sure mariadb versions are correctly identified in the updater#26079
HLeithner merged 4 commits intojoomla:stagingfrom
zero-24:supported_databases_mariadb

Conversation

@zero-24
Copy link
Contributor

@zero-24 zero-24 commented Aug 30, 2019

Pull Request for Issue #26078

Summary of Changes

Make sure mariadb versions are correctly identified by the updater

Testing Instructions

Expected result

pre update checker and install of the update is proposed

Actual result

image

Documentation Changes Required

In order to make this work this here implements a new version detection for mariadb and also requires mariadb to be specified in the XML. This new behavior needs to be documented.

<supported_databases mysql="5.6" mariadb="10.4" postgresql="11.0"/>

@richard67
Copy link
Member

richard67 commented Aug 30, 2019

@zero-24

<supported_databases mysql="5.6" mariadb="10.4" postgresql="11.0"/>

Shall it define the supported versions, like the name of the item suggests, e.g. with a regex mariadb="10.[456]", or shall it be the minimum supported version for each DB? If the latter, then the name "supported_databases" might be a bit misleading.

P.S.: Is just a question for my understanding, not that I require any change. I can't test it anyway because I don't have MariaDB and for installing one it needs to kill my MySQL Db first, which I would like to avoid.

@richard67
Copy link
Member

@zero-24 Forget my question in my previous comment. I've found it in the docs.

@richard67
Copy link
Member

@zero-24 My comment here #26104 (comment) applies also to this PR here. Shall I provide fixes for both PRs with making PRs to your repo?

* Fix MariaDB detection

* Fix variable name
@zero-24
Copy link
Contributor Author

zero-24 commented Sep 4, 2019

Merged thanks @richard67 👍

@richard67
Copy link
Member

Unfortunately I don't use MariaDB, sounds too catholic to me, am protestant ;-) So I can't help with a test.

@fancyFranci
Copy link
Contributor

I tested this with 10.3.16-MariaDB and the updater works again, after adding the patch.
But my MariaDB version is not one of the supported databases. Is this intended?

Btw System Information displays before and after the patch:
Database Type: mysql
Database Version: 5.5.5-10.3.16-MariaDB


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

@zero-24
Copy link
Contributor Author

zero-24 commented Sep 5, 2019

I tested this with 10.3.16-MariaDB and the updater works again, after adding the patch.
But my MariaDB version is not one of the supported databases. Is this intended?

It is more an minimum_databases tag ;) As the updates points to 10.1 you are good to go with 10.3.16

Btw System Information displays before and after the patch:

Yes this is intended as 5.5.5.XX.XX.XX is the actual version that the database returns.

@ghost
Copy link

ghost commented Sep 5, 2019

@fancyFranci please mark your test as successfully (how to: https://docs.joomla.org/Testing_Joomla!_patches#Recording_test_results)

@fancyFranci
Copy link
Contributor

I have tested this item ✅ successfully on 193cc4f

Catholic enough


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

@fancyFranci
Copy link
Contributor

I tested this with 10.3.16-MariaDB and the updater works again, after adding the patch.
But my MariaDB version is not one of the supported databases. Is this intended?

It is more an minimum_databases tag ;) As the updates points to 10.1 you are good to go with 10.3.16

This is the point that confuses me, as 10.3. is lower than the minimum 10.4., isn't it? :)

@roland-d
Copy link
Contributor

roland-d commented Sep 5, 2019

I have tested this item ✅ successfully on 193cc4f

Before applying the patch Joomla said that the update was not available, after applying the patch the update of Joomla 4 shows up.


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

@zero-24
Copy link
Contributor Author

zero-24 commented Sep 5, 2019

This is the point that confuses me, as 10.3. is lower than the minimum 10.4., isn't it? :)

The minimum configured on the update server right now is:

<supported_databases mysql="5.6" mariadb="10.0" postgresql="11.0"/>

So anything above that should pass using the testing update server provided above. This is not an official statement on what would be the actual minimum for sure. ;)

@zero-24
Copy link
Contributor Author

zero-24 commented Sep 5, 2019

Ah ok i now got where the confusion is comming from @fancyFranci it is my fault :D

The update server itself points to mariadb 10.0 in my description here i used 10.4 bis this is not the version set in the xml and should have only represent an example how the xml could look like.

So in conclusion everything works as expected :)

@roland-d
Copy link
Contributor

roland-d commented Sep 5, 2019

The PHP version seems incorrect:
image

This should say PHP Version >= 7.2.0

@zero-24
Copy link
Contributor Author

zero-24 commented Sep 5, 2019

Yes and no :D You are correct this should be the case for 4.0 stable but as of now the update server in this example still points to

<php_minimum>7.0.0</php_minimum>

https://www.jah-tz.de/downloads/core/nightlies/next_major_extension.xml

I'm not at my desk so i can not update it yet but it is totally working than expected for now :)

@ghost
Copy link

ghost commented Sep 5, 2019

Status "Ready To Commit".

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Sep 5, 2019
@HLeithner HLeithner merged commit 34f9283 into joomla:staging Sep 5, 2019
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Sep 5, 2019
@HLeithner
Copy link
Member

Thanks for making J3 a bit more mariaDB aware.

@zero-24
Copy link
Contributor Author

zero-24 commented Sep 13, 2019

Create an PR against the updater repo to ship the mariadb tag in the xmls

Based on: joomla/update.joomla.org#145 (comment) mariadb minimum is going to be 10,1 for now. Here is the update server PR to do the required change: joomla/update.joomla.org#146 cc @HLeithner @wilsonge

Update docs https://docs.joomla.org/Deploying_an_Update_Server

Added a note about the case implemented here.

@zero-24 zero-24 removed their assignment Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants