? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
4 Sep 2021

Pull Request for Issue #35406 .

Summary of Changes

While updating a site from Joomla 3.10 to Joomla 4, if the site contains a system plugin with single quote or double character in it's name, the pre-update checker will throws some javascript error and update could not be processed

This PR solves it by using addScriptOptions instead of addScriptDeclaration to pass nonCoreCriticalPlugins data to javascript.

Testing Instructions

  1. Install 3.10.1
  2. Install and enable the attached system plugin. (I set the name to System Fake's , contains single quote character)
  3. Set Update Channel to Joomla Next
  4. Access to Components -> Joomla! Update to try to update from Joomla 3.10 to Joomla 4.
  5. Before patch, check browser console, you will see some javascript error
  6. After patch, no error, pre-update checker works as expected

plug_system_fake.zip

avatar joomdonation joomdonation - open - 4 Sep 2021
avatar joomdonation joomdonation - change - 4 Sep 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2021
Category Administration com_joomlaupdate JavaScript
avatar zero-24 zero-24 - test_item - 4 Sep 2021 - Tested successfully
avatar zero-24
zero-24 - comment - 4 Sep 2021

I have tested this item successfully on 26ca1ca

Works good for me. Thanks @joomdonation


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

avatar ChristineWk ChristineWk - test_item - 4 Sep 2021 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 4 Sep 2021

I have tested this item successfully on 26ca1ca

will delete now the nice plugin :-)


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

avatar krogias
krogias - comment - 4 Sep 2021

Tested successfully

avatar richard67 richard67 - change - 4 Sep 2021
Status Pending Ready to Commit
Labels Added: ?
avatar richard67
richard67 - comment - 4 Sep 2021

RTC


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

avatar zero-24
zero-24 - comment - 4 Sep 2021

Merging thanks ?

avatar zero-24 zero-24 - change - 4 Sep 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-09-04 18:37:45
Closed_By zero-24
Labels Added: ?
avatar zero-24 zero-24 - close - 4 Sep 2021
avatar zero-24 zero-24 - merge - 4 Sep 2021

Add a Comment

Login with GitHub to post a comment