? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
4 Sep 2016

Summary of Changes

There are some parts of the installation process that don't check for ajax request issues (timeout, syntax error, server error codes, etc) leaving the user with no clue on what is wrong.

This PR corrects that and also improves the error messages by replacing javascript alert messages with joomla message errors.

Didn't change the ftp part because don't have way to test it

Testing Instructions

  1. First apply this patch
  2. Delete configuration.php and reload any site page you'll be redirect to installation
  3. When in installation view: Clear all browser cache
  4. Test no regresssions: normal installations and check everything is fine
  5. Repeat step 2.
  6. Test forcing errors, for checking you always get some error message:
    • Add an sql error in joomla.sql file. Try to install, you should get an error
    • Add some non php text (anything that generates a php syntax error) inside /installation/model/configuration.php. Try to install, you should get an error
    • Rename /installation/controller/site.php to anything. Try to install, you should get an error
    • Throw some exception (example: throw new Exception('some error', 404);) here https://github.com/joomla/joomla-cms/blob/staging/installation/controller/site.php#L34 . Try to install, you should get an error
    • Test forcing any other error you can remember in the install process
  7. Code review. Use this to ignore whitespaces changes https://github.com/joomla/joomla-cms/pull/11930/files?w=1

Documentation Changes Required

None.

avatar andrepereiradasilva andrepereiradasilva - open - 4 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2016
Category JavaScript Installation
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 4 Sep 2016
1544ac2 4 Sep 2016 avatar andrepereiradasilva cs
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 4 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 4 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 4 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 4 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 4 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 4 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - edited - 4 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 4 Sep 2016
avatar piotr-cz
piotr-cz - comment - 5 Sep 2016

It's really hard to see scope of changes when you've changed whitespace formatting.

avatar andrepereiradasilva
andrepereiradasilva - comment - 5 Sep 2016

That's why i said (the problem is this file didn't use tabs for indent as all other joomla files. i corrected that also)

Code review. Use this to ignore whitespaces changes https://github.com/joomla/joomla-cms/pull/11930/files?w=1

avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Jan 2017

closing because lack of interrest

avatar andrepereiradasilva andrepereiradasilva - change - 2 Jan 2017
The description was changed
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-01-02 15:45:16
Closed_By andrepereiradasilva
avatar andrepereiradasilva andrepereiradasilva - close - 2 Jan 2017

Add a Comment

Login with GitHub to post a comment