RTC PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
17 Feb 2025

Summary of Changes

Reverts #42890 and moves the classes to the compat plugin instead of easier transition. It uses the same logic as #44240 without the option.

Testing Instructions

  • Enable the compat plugin
  • Add the following code to the file /administrator/components/com_content/tmpl/articles/default.php:
    new \Joomla\CMS\Input\Json();
  • Open the back end articles list with at least one article.

Actual result BEFORE applying this Pull Request

A Class "Joomla\CMS\Input\Json" not found exception is thrown.

Expected result AFTER applying this Pull Request

The articles list is loaded.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org: joomla/Manual#389

  • No documentation changes for manual.joomla.org needed

avatar laoneo laoneo - open - 17 Feb 2025
avatar laoneo laoneo - change - 17 Feb 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Feb 2025
Category Front End Plugins
avatar laoneo laoneo - change - 17 Feb 2025
Title
Compat/input
[6.0] Add removed Input classes to the compat plugin
avatar laoneo laoneo - edited - 17 Feb 2025
avatar laoneo laoneo - change - 17 Feb 2025
The description was changed
avatar laoneo laoneo - edited - 17 Feb 2025
avatar laoneo laoneo - change - 17 Feb 2025
The description was changed
avatar laoneo laoneo - edited - 17 Feb 2025
avatar laoneo laoneo - change - 17 Feb 2025
Labels Added: PR-6.0-dev
avatar laoneo laoneo - change - 17 Feb 2025
The description was changed
avatar laoneo laoneo - edited - 17 Feb 2025
03f7bff 17 Feb 2025 avatar laoneo cs
avatar Hackwar
Hackwar - comment - 17 Feb 2025

Why do we have to add back in all those classes, when most of it is a pretty much direct copy of the framework classes? Why can't we use the alias method? I mean, if you insist on adding back in old classes, I can understand to add the CLI class, but the rest is basically just duplicated code. I don't see why we need that.

avatar laoneo
laoneo - comment - 17 Feb 2025

I leave the decision up to the RM's.

avatar wilsonge
wilsonge - comment - 19 Feb 2025

For the record this one is tricker. Removing the alias from CMSInput functionally changes behavior and forces extensions to change much more of their code as a result. In this very specific case because of that I’m personally against merging this (for the record in favour of merging the other application one)

avatar laoneo
laoneo - comment - 20 Feb 2025

Which alias do you mean? This one? It was added in #43209 after I remove the classes in #42890 and was never in production anyway. So this pr basically restores the 5.x behavior, with the only difference that the classes are moved from libraries to the compat plugin.

avatar wilsonge
wilsonge - comment - 21 Feb 2025

I do mean that one and even though it's not in production it leads to a much bigger b/c break when the compat plugin is disabled.

avatar tekvishal
tekvishal - comment - 22 Feb 2025

getting this error The file marked for modification does not exist: plugins/behaviour/compat/src/classmap/classmap.php


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

avatar tekvishal tekvishal - test_item - 22 Feb 2025 - Tested unsuccessfully
avatar tekvishal
tekvishal - comment - 22 Feb 2025

I have tested this item šŸ”“ unsuccessfully on 88f0ecd


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

avatar laoneo
laoneo - comment - 4 Mar 2025

@tekvishal you need to test it with the code from version 6. This error has nothing to do with the current pr. Best is to use the prebuilt package.

avatar laoneo
laoneo - comment - 6 Mar 2025

An additional comment to @wilsonge comment about the impact. The alias is only loaded when the compat plugin is enabled anyway, so this here is no difference to the state before as both ways are only loaded when the compat plugin is enabled.

avatar exlemor exlemor - test_item - 8 Mar 2025 - Tested unsuccessfully
avatar exlemor
exlemor - comment - 8 Mar 2025

I have tested this item šŸ”“ unsuccessfully on 59330d8

I can NOT replicate the before Condition - without the Patch applied, there is NO error message when looking at the Articles list...

See attachment below...


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44925.
Screen.Recording.8.Mar.2025.at.1_32_36.AM-3.mp4
avatar laoneo laoneo - change - 8 Mar 2025
The description was changed
avatar laoneo laoneo - edited - 8 Mar 2025
avatar laoneo
laoneo - comment - 8 Mar 2025

Thanks for the test, I'v updated the testing instructions with another class as we have an alias for the default input class.

avatar exlemor exlemor - test_item - 9 Mar 2025 - Tested successfully
avatar exlemor
exlemor - comment - 9 Mar 2025

I have tested this item āœ… successfully on 59330d8

I have tested this successfully now (with the updated new \Joomla\CMS\Input\Json(); line). Thanks @laoneo.

FYI, for the next testers, the error will show:

An error has occurred.
0 Class "Joomla\CMS\Input\Json" not found

not A Class "Joomla\CMS\Input\Input" not found exception is thrown. as mentioned in the Testing instructions.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44925.
avatar laoneo
laoneo - comment - 9 Mar 2025

@exlemor you are awesome!

avatar laoneo laoneo - change - 9 Mar 2025
The description was changed
avatar laoneo laoneo - edited - 9 Mar 2025
avatar krishnaGandhi11 krishnaGandhi11 - test_item - 9 Mar 2025 - Tested successfully
avatar krishnaGandhi11
krishnaGandhi11 - comment - 9 Mar 2025

I have tested this item āœ… successfully on 59330d8


Thanks @laoneo.


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

avatar richard67 richard67 - change - 22 Mar 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 22 Mar 2025

RTC as it has 2 successful tests. But I will also add the RMDQ (release managers decision queue) label so it will be decided in the CMS Maintenance Team.


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

avatar laoneo laoneo - change - 17 Apr 2025
Labels Added: RTC RMDQ
avatar Bodge-IT Bodge-IT - change - 14 May 2025
Labels Removed: RMDQ
avatar Bodge-IT Bodge-IT - change - 14 May 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-05-14 10:20:05
Closed_By Bodge-IT
avatar Bodge-IT Bodge-IT - close - 14 May 2025
avatar Bodge-IT Bodge-IT - merge - 14 May 2025
avatar Bodge-IT
Bodge-IT - comment - 14 May 2025

Thanks for this @laoneo and for the testers @krishnaGandhi11 & @exlemor

Add a Comment

Login with GitHub to post a comment