? ? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
15 Jun 2016

Pull Request for Issue #10826 and #10857 (update sites part).

Summary of Changes

This PR changes updates sites rebuild process so only non core extensions can be deleted/rebuilt.

Also adds a error message on Rebuild when extension joomla plugin is disabled.

Testing Instructions

  1. Use joomla latest staging
  2. Confirm problems described in #10826 are solved
  3. Do a general test in update sites delete/rebuild process with several 3º party extensions with update servers (of several types: templates, frameworks, modules, plugins, components, etc)
  4. Disable Joomla Extension plugin
  5. Try to Rebuild and check the error message
  6. Enable Joomla Extension plugin and repeat step 5. no error
  7. Code review

Observations

Mantainers this hardcodes joomla, pkg_en-GB and com_joomlaupdate has core extensions with update servers.

avatar andrepereiradasilva andrepereiradasilva - open - 15 Jun 2016
avatar andrepereiradasilva andrepereiradasilva - change - 15 Jun 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Jun 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - change - 15 Jun 2016
Title
[update sites rebuild] Only for extensions id lower than 10000. Solves #10826
[update sites rebuild] Only for extensions id higher than 10000. Solves #10826
avatar andrepereiradasilva andrepereiradasilva - change - 15 Jun 2016
Title
[update sites rebuild] Only for extensions id lower than 10000. Solves #10826
[update sites rebuild] Only for extensions id higher than 10000. Solves #10826
avatar mbabker
mbabker - comment - 15 Jun 2016

If the database schema is valid, then only core extensions should have an ID of less than 10000. However, this is not always the case; I have seen issues (I forget where right now) related to a database where the auto increment value was not correctly set.

avatar andrepereiradasilva
andrepereiradasilva - comment - 15 Jun 2016

hum ... any ideas? use 802 as last id?

avatar mbabker
mbabker - comment - 15 Jun 2016

IDs are unreliable as a limiter. That's my only idea right now.

avatar andrepereiradasilva andrepereiradasilva - change - 15 Jun 2016
The description was changed
dfe9c34 15 Jun 2016 avatar andrepereiradasilva cs
avatar andrepereiradasilva
andrepereiradasilva - comment - 15 Jun 2016

ok, maybe hardcode the core elements with update sites: joomla, pkg_en-GB and com_joomlaupdate, this way we don't use ids

avatar andrepereiradasilva andrepereiradasilva - change - 16 Jun 2016
Title
[update sites rebuild] Only for extensions id higher than 10000. Solves #10826
[update sites rebuild] Only for non core extensions. Solves #10826
avatar andrepereiradasilva andrepereiradasilva - change - 16 Jun 2016
Title
[update sites rebuild] Only for extensions id higher than 10000. Solves #10826
[update sites rebuild] Only for non core extensions. Solves #10826
avatar brianteeman brianteeman - change - 16 Jun 2016
Category Administration
avatar andrepereiradasilva andrepereiradasilva - change - 16 Jun 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 16 Jun 2016
The description was changed
Title
[update sites rebuild] Only for non core extensions. Solves #10826
[update sites rebuild/delete] Only for non core extensions. Solves #10826
avatar andrepereiradasilva andrepereiradasilva - change - 16 Jun 2016
Title
[update sites rebuild] Only for non core extensions. Solves #10826
[update sites rebuild/delete] Only for non core extensions. Solves #10826
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jun 2016
Labels Added: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 17 Jun 2016

Made some improvements to, when rebuilding the update sites, check if the joomla extension plugin is enabled (see #10857).

Now it only allows to rebuild the update sites if the Joomla Extension Plugin is enabled, otherwise it retuns an error message indicating you have to enable it.

cef886b 17 Jun 2016 avatar andrepereiradasilva cs
avatar andrepereiradasilva andrepereiradasilva - change - 17 Jun 2016
The description was changed
avatar andrepereiradasilva
andrepereiradasilva - comment - 18 Jun 2016

done

avatar andrepereiradasilva
andrepereiradasilva - comment - 29 Jun 2016

no volunteers for testing this one?

avatar infograf768
infograf768 - comment - 4 Jul 2016

Tested with a language pack for which http was changed to https in the manifest. The http one is deleted after patch. Therefore success.

Are kept in the list 2 instances of

Joomla Core
Joomla Extension Directory
Joomla! Update Component Update Site

one with http and one with https.
Any reason to not take care of these? Impossible because they are locked?

avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Jul 2016

Are kept in the list 2 instances of

Joomla Core
Joomla Extension Directory
Joomla! Update Component Update Site

one with http and one with https.
Any reason to not take care of these? Impossible because they are locked?

Why do you have one with http and other with https?
In joomla 3.6.x. They are all HTTPS (in DB and manifest file).

Anyway, any update site that matches this query will not be rebuilded and can't be deleted.

avatar infograf768
infograf768 - comment - 5 Jul 2016

Why do you have one with http and other with https?
In joomla 3.6.x. They are all HTTPS (in DB and manifest file).

This is a legacy site, not a new install.

avatar andrepereiradasilva
andrepereiradasilva - comment - 5 Jul 2016

did you make a regular update, this is changed in update sqls?

avatar infograf768
infograf768 - comment - 5 Jul 2016

Nope. Just by overwriting on my test site.

avatar andrepereiradasilva
andrepereiradasilva - comment - 5 Jul 2016

ok so that's the issue, is not related to this PR. So your test was a success

avatar infograf768 infograf768 - test_item - 5 Jul 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 5 Jul 2016

I have tested this item successfully on 58ee6ef


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

avatar conconnl conconnl - test_item - 7 Jul 2016 - Tested successfully
avatar conconnl
conconnl - comment - 7 Jul 2016

I have tested this item successfully on 58ee6ef

It works as it should do.


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

avatar brianteeman brianteeman - change - 7 Jul 2016
Status Pending Ready to Commit
Labels
avatar brianteeman
brianteeman - comment - 7 Jul 2016

Rtc


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

avatar joomla-cms-bot joomla-cms-bot - change - 7 Jul 2016
Labels Added: ?
avatar roland-d roland-d - change - 16 Jul 2016
Milestone Added:
avatar wilsonge wilsonge - change - 21 Jul 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-07-21 21:26:28
Closed_By wilsonge
avatar roland-d roland-d - change - 22 Jul 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment