? ? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
4 Feb 2018

PR for #17604

Change the message to include the name of the extension.

I have no idea how to test this - sorry - only code review - unless someone knows how?

avatar brianteeman brianteeman - open - 4 Feb 2018
avatar brianteeman brianteeman - change - 4 Feb 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Feb 2018
Category Administration Language & Strings Libraries
avatar joomdonation
joomdonation - comment - 11 Feb 2018

To test the first case, I had to alter data from database in #__extensions table for an extension, and then go to Extensions -> Manage, select that extension and press Refresh cache

I don't know how an extension can have state = -1, not installed (see this error message Refresh Manifest Cache failed: com_banners Extension is not currently installed) (even in our state filter doesn't have this state). So maybe the code and language item for that case could be removed. But I am unsure.

avatar brianteeman
brianteeman - comment - 12 Feb 2018

To test the first case, I had to alter data from database in #__extensions table for an extension, and then go to Extensions -> Manage, select that extension and press Refresh cache

When you say "alter data" what exactly do you mean? If I set the state to -1 then it doesnt appear in Extensions->Manage so i cant "refresh the cache"

I don't know how an extension can have state = -1,

Perhaps a discovered extension that hasnt been "installed" yet. Anyway it happens because the user in #17604 reported it

avatar joomdonation
joomdonation - comment - 13 Feb 2018

If I set the state to -1 then it doesnt appear in Extensions->Manage so i cant "refresh the cache"

Go to Extensions -> Manage -> Manage to see the list of extensions first and select the one you want, then change state to -1 for that extension record in #__extensions table via phpmyadmin and then press Refresh Cache button

avatar brianteeman
brianteeman - comment - 13 Feb 2018

Thanks for the tip. Will to check it in the morning

avatar brianteeman
brianteeman - comment - 13 Feb 2018

@joomdonation Sorry I dont understand what the problem is with this PR. After using your test instructions (thanks) the error message is now correctly reported as

Refresh Manifest Cache failed: com_banners Extension is not currently installed.

Instead of

Refresh Manifest Cache failed: Extension is not currently installed.

avatar brianteeman brianteeman - change - 13 Feb 2018
Labels Added: ? ?
avatar brianteeman
brianteeman - comment - 13 Feb 2018

conflicts resolved

avatar joomdonation
joomdonation - comment - 14 Feb 2018

@brianteeman The change you made in line 385 is not correct (It is the case empty $eid is passed to method call, so $this->extension->name will return an empty value and should not be used not be used in the language item)

$this->abort(\JText::sprintf('JLIB_INSTALLER_ABORT_REFRESH_MANIFEST_CACHE_VALID', $this->extension->name));

In short, just revert the change you made to line 385 and the language item JLIB_INSTALLER_ABORT_REFRESH_MANIFEST_CACHE_VALID and you PR will be fine

If you want to test this case, just add this line of code at the beginning of the method:

$eid = 0;

Then check the message display after clicking on Refresh Cache button.

avatar brianteeman
brianteeman - comment - 14 Feb 2018

Sorry I completely misunderstood you. My fault for reading jut the email and not looking at the entire thing. Fix coming - thanks for your patience

avatar joomdonation
joomdonation - comment - 14 Feb 2018

I have tested this item successfully on 545a70b


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

avatar joomdonation joomdonation - test_item - 14 Feb 2018 - Tested successfully
avatar joomdonation
joomdonation - comment - 14 Feb 2018

Thanks, it's fine now. Better, please revert the comment line in line 809 which you removed, too

// Fetch the adapter

avatar brianteeman brianteeman - change - 3 Apr 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-04-03 18:56:08
Closed_By brianteeman
avatar brianteeman brianteeman - close - 3 Apr 2018
avatar rdeutz rdeutz - change - 3 Apr 2018
Status Closed New
Closed_Date 2018-04-03 18:56:08
Closed_By brianteeman
avatar rdeutz rdeutz - change - 3 Apr 2018
Status New Pending
avatar rdeutz rdeutz - reopen - 3 Apr 2018
avatar Quy
Quy - comment - 6 Apr 2018

I have tested this item successfully on 9e07f80


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

avatar Quy Quy - test_item - 6 Apr 2018 - Tested successfully
avatar Quy Quy - change - 6 Apr 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 6 Apr 2018

RTC


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

avatar rdeutz rdeutz - change - 7 Apr 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-04-07 09:02:31
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 7 Apr 2018
avatar rdeutz rdeutz - merge - 7 Apr 2018

Add a Comment

Login with GitHub to post a comment