bug PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
6 Oct 2022

Summary of Changes

The code to install the CMS is quite a mess and pretty inconsistent. The configuration sometimes is expected as an array, sometimes as an object. Sometimes the configuration is handed in from the outside, sometimes it is retrieved by the model itself from the session. The form validation code is not done like in the rest of the CMS by the controller calling the methods in the model, but the controller is calling a special method in the model, which then again does the validation calls...

Goals of this PR:

  1. The configuration is explicitely given the model as method parameter. This also improves the code of the CLI installation.
  2. The configuration is used as an array
  3. The code is cleaned up to confirm to our regular flow of execution elsewhere in the CMS.
  4. Functions are decoupled in a better way to better integrate with the CLI installer

Link to documentations

  • No documentation changes for docs.joomla.org needed
  • No documentation changes for manual.joomla.org needed
avatar Hackwar Hackwar - open - 6 Oct 2022
avatar Hackwar Hackwar - change - 6 Oct 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2022
Category Unit Tests Installation Language & Strings Libraries
avatar Hackwar Hackwar - change - 6 Oct 2022
The description was changed
avatar Hackwar Hackwar - edited - 6 Oct 2022
avatar Hackwar Hackwar - change - 21 Oct 2022
Labels Added: ? Language Change PR-4.3-dev
avatar joomla-cms-bot joomla-cms-bot - change - 21 Oct 2022
Category Unit Tests Installation Language & Strings Libraries Unit Tests Installation
avatar Hackwar Hackwar - change - 21 Oct 2022
Labels Removed: Language Change
avatar joomla-cms-bot joomla-cms-bot - change - 21 Oct 2022
Category Unit Tests Installation Installation
avatar Hackwar Hackwar - change - 21 Oct 2022
Labels Removed: ?
avatar Hackwar Hackwar - change - 30 Oct 2022
The description was changed
avatar Hackwar Hackwar - edited - 30 Oct 2022
avatar joomdonation joomdonation - test_item - 9 Jan 2023 - Tested successfully
avatar joomdonation
joomdonation - comment - 9 Jan 2023

I have tested this item successfully on ec4c946

Installation works well, install additional languages work well, tried to enter wrong credentials..., all still work.


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

avatar Hackwar Hackwar - change - 23 Mar 2023
Title
[4.3] Improve CMS installation code
[4.4] Improve CMS installation code
avatar Hackwar Hackwar - edited - 23 Mar 2023
avatar laoneo laoneo - change - 28 Mar 2023
Labels Added: PR-4.4-dev
Removed: PR-4.3-dev
avatar laoneo
laoneo - comment - 28 Mar 2023

There are also some code style issues.

avatar Hackwar
Hackwar - comment - 28 Mar 2023

Codestyle has been fixed.

avatar Hackwar Hackwar - change - 30 Mar 2023
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 4 Apr 2023
Category Installation Unit Tests Repository Administration com_content com_contenthistory Language & Strings Templates (admin) JavaScript NPM Change Installation Libraries
avatar richard67 richard67 - change - 4 Apr 2023
Title
[4.4] Improve CMS installation code
[5.0] Improve CMS installation code
avatar richard67 richard67 - edited - 4 Apr 2023
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2023
Category Installation Unit Tests Repository Administration com_content com_contenthistory Language & Strings Templates (admin) JavaScript NPM Change Libraries Installation
avatar HLeithner HLeithner - change - 7 Apr 2023
Labels Added: ? Language Change NPM Resource Changed bug PR-5.0-dev
Removed: ? PR-4.4-dev
avatar Hackwar Hackwar - change - 18 Apr 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-04-18 12:06:30
Closed_By Hackwar
Labels Removed: ? Language Change NPM Resource Changed
avatar Hackwar Hackwar - close - 18 Apr 2023
avatar Hackwar Hackwar - change - 18 Apr 2023
Status Closed New
Closed_Date 2023-04-18 12:06:30
Closed_By Hackwar
avatar Hackwar Hackwar - change - 18 Apr 2023
Status New Pending
avatar Hackwar Hackwar - reopen - 18 Apr 2023
avatar HLeithner HLeithner - change - 2 Sep 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-09-02 15:22:02
Closed_By HLeithner
avatar HLeithner HLeithner - close - 2 Sep 2023
avatar HLeithner HLeithner - merge - 2 Sep 2023
avatar HLeithner
HLeithner - comment - 2 Sep 2023

pretty sure the installer get tested with beta1 much more then as this pr. thanks

avatar HLeithner
HLeithner - comment - 3 Sep 2023

It seems there are errors in the PR that have to been checked and fixed. Seems the first form is not preserved... @Hackwar I didn't discovered this while testing. @wilsonge reported it to me

avatar wilsonge
wilsonge - comment - 3 Sep 2023

So I accidentally added the wrong db admin to the form. Clicked submit and got the correct error (n.b. I didn't see the progress bar at this point). The form data is preserved in that sense (probably too well!). However, when fixing the error in the form and submitting again I got the error that @fancyFranci obtained and had no way to resolve it or go back. I had to refresh the page and enter all information again.

avatar HLeithner
HLeithner - comment - 3 Sep 2023

strange, my first run was also mit wrong database credentials but I got back to the prefilled form and corrected my error and installation went thru

avatar wilsonge
wilsonge - comment - 26 Sep 2023

Yeah this definitely broke stuff - but only if you clear your cookies out in the meantime because this doesn't refresh after data is updated in the session. See #41942

Add a Comment

Login with GitHub to post a comment