? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
18 Jun 2020

Fixes #29654.

Summary of Changes

Corrects class casing, fixing version preview on case sensitive filesystems.

Testing Instructions

Create and edit an article.
Click Versions button.
Select a version and click Preview.

Expected result

Preview displayed.

Actual result

Call to a member function load() on bool

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 18 Jun 2020
avatar SharkyKZ SharkyKZ - change - 18 Jun 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jun 2020
Category Administration com_content com_contenthistory
avatar PhilETaylor
PhilETaylor - comment - 18 Jun 2020

now gives

Notice: Undefined offset: 1 in /application/administrator/components/com_contenthistory/src/Helper/ContenthistoryHelper.php on line 184
The most recent request was denied because it had an invalid security token. Please refresh the page and try again.
avatar SharkyKZ SharkyKZ - change - 18 Jun 2020
The description was changed
avatar SharkyKZ SharkyKZ - edited - 18 Jun 2020
avatar PhilETaylor
PhilETaylor - comment - 18 Jun 2020

Some of these in the middle of this search might need changing too ??

Screenshot 2020-06-18 at 17 36 48

avatar SharkyKZ
SharkyKZ - comment - 18 Jun 2020

Those using JTable prefix are case insensitive. So they're fine for now.

avatar PhilETaylor
PhilETaylor - comment - 18 Jun 2020

ok cool well this fixes the reported issue, but still leaves that Notice: Undefined offset: 1 message above.

avatar ChristineWk ChristineWk - test_item - 18 Jun 2020 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 18 Jun 2020

I have tested this item successfully on 896a8db


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

avatar ChristineWk
ChristineWk - comment - 18 Jun 2020

Confirm Actual Result before Patch.
@PhilETaylor With Patch: No message shown.


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

avatar particthistle particthistle - test_item - 18 Jun 2020 - Tested successfully
avatar particthistle
particthistle - comment - 18 Jun 2020

I have tested this item successfully on 896a8db

- Specific expected result for the issue tested successfully and preview of version was displayed.

  • Confirmed that if URL @PhilETaylor prescribes is used, then there's still an offset error. However, why would someone want to manually fake a URL with no version ID value supplied - that would imply they know what the URL is trying to achieve, and that they would be expecting failure.

Not sure what the suggested solution should be there on that URL being used with no parameter? As it loads in a modal, should a direct access outside the modal trigger a die();?


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

avatar particthistle
particthistle - comment - 18 Jun 2020

I have tested this item successfully on 896a8db

- Specific expected result for the issue tested successfully and preview of version was displayed.

  • Confirmed that if URL @PhilETaylor prescribes is used, then there's still an offset error. However, why would someone want to manually fake a URL with no version ID value supplied - that would imply they know what the URL is trying to achieve, and that they would be expecting failure.

Not sure what the suggested solution should be there on that URL being used with no parameter? As it loads in a modal, should a direct access outside the modal trigger a die();?


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

avatar PhilETaylor
PhilETaylor - comment - 18 Jun 2020

@particthistle The principle is that Joomla should NEVER output PHP Notices/Warnings to the screen. Joomla has been for years, developed with error_reporting set to max, and coded so that all routes, known and abused urls, can not produce uncaught and unhandled exceptions or notices. This has always been the case.

As it loads in a modal, should a direct access outside the modal trigger a die();?

Harder than it sounds ;-)

avatar particthistle
particthistle - comment - 18 Jun 2020

@PhilETaylor agree with the principle. And that it's hard than it sounds.

Code to suggest for this one escapes me at the second, and not just as it's 4am in Australia.


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

avatar PhilETaylor
PhilETaylor - comment - 18 Jun 2020

Notice fixed in #29693

avatar richard67 richard67 - test_item - 18 Jun 2020 - Tested successfully
avatar richard67
richard67 - comment - 18 Jun 2020

I have tested this item successfully on 896a8db

3rd test is never bad ;-)


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

avatar richard67 richard67 - change - 18 Jun 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 18 Jun 2020

RTC


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

avatar richard67 richard67 - change - 18 Jun 2020
Labels Added: ? ?
avatar wilsonge wilsonge - change - 19 Jun 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-06-19 10:11:23
Closed_By wilsonge
Labels
avatar wilsonge wilsonge - close - 19 Jun 2020
avatar wilsonge wilsonge - merge - 19 Jun 2020
avatar wilsonge
wilsonge - comment - 19 Jun 2020

Thanks!

Add a Comment

Login with GitHub to post a comment