? ? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
2 Dec 2017

Pull Request for Issue #18557 .

Summary of Changes

Changes how json issues are returned so everything in the CMS runs through the main application rather than echo'ing json and trying to run $app->close which we sometimes do in core to work around bad plugins - we don't have these in the installer and it makes the logic much clearer

Fixes how responses from dbcheck are handled - there is now an error shown and installation stopped when things go wrong in the installer

Note the UX isn't great because the error is displayed at the top of the page and you have to scroll all the way up to the top to see that. But I'm not a frontender - so I'll leave that for a subsequent PR from @ciar4n or @C-Lodder - this at least means things are functional

// cc @laoneo as you wrote some of this JSON error handling

Testing Instructions

Enter incorrect database credentials into the installer

Expected result

It bails

Actual result

Configuration file is written and you have to remove configuration.php to ever do anything again.

Documentation Changes Required

None

avatar wilsonge wilsonge - open - 2 Dec 2017
avatar wilsonge wilsonge - change - 2 Dec 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Dec 2017
Category Installation JavaScript
avatar wilsonge wilsonge - change - 2 Dec 2017
Title
Fix issues when people don't enter the right information
[4.0] Fix issues when people don't enter the right information in the installer
avatar wilsonge wilsonge - edited - 2 Dec 2017
avatar wilsonge wilsonge - change - 2 Dec 2017
The description was changed
avatar wilsonge wilsonge - edited - 2 Dec 2017
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 8 Dec 2017 - Tested unsuccessfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Dec 2017

I have tested this item ? unsuccessfully on 1c70e52

Installation of 18958.zip using wrong Database-Information (wrong user and wrong Password) got:

bildschirmfoto 2017-12-08 um 13 34 49

No Way found to go a Step return an use correct Informations.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18958.
avatar laoneo laoneo - change - 11 Apr 2018
Labels Added: ?
avatar laoneo
laoneo - comment - 11 Apr 2018

I have the same behavior with and without the patch.

avatar wilsonge
wilsonge - comment - 6 May 2018

Can you try again please?

avatar laoneo
laoneo - comment - 9 May 2018

I have tested this item successfully on 7fb758a

Works now, except the UI which is not rendered correctly as pointed already out in the pr description.


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

avatar laoneo laoneo - test_item - 9 May 2018 - Tested successfully
avatar dgrammatiko
dgrammatiko - comment - 9 May 2018

I have tested this item successfully on 7fb758a


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

avatar dgrammatiko dgrammatiko - test_item - 9 May 2018 - Tested successfully
avatar dgrammatiko
dgrammatiko - comment - 9 May 2018

@laoneo rtc, merge it

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 May 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 May 2018

Ready to Commit after two successful tests.

avatar laoneo laoneo - change - 9 May 2018
Labels Added: ?
avatar laoneo laoneo - change - 9 May 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-05-09 14:51:17
Closed_By laoneo
avatar laoneo laoneo - close - 9 May 2018
avatar laoneo laoneo - merge - 9 May 2018
avatar laoneo
laoneo - comment - 9 May 2018

Thanks!

avatar wilsonge
wilsonge - comment - 9 May 2018

Thanks guys :)

Add a Comment

Login with GitHub to post a comment