RTC bug PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar SniperSister
SniperSister
20 Aug 2024

Summary of Changes

The 4.4.7 and 5.1.3 security release broke the pagination in com_finder (thanks Phil for reporting) and the com_content archive view.

Testing Instructions

Create a test site with a sufficient amount of articles to get a paginated result for the com_finder search results. Click on the pagination links.

Furthermore create an archive view with a sufficient amount of articles that filters for a specific category.

Actual result BEFORE applying this Pull Request

  • finder: Search parameters and search word are lost.
  • archive: catid parameter is lost

Expected result AFTER applying this Pull Request

  • finder: Search parameters and search word are appended to the URL.
  • archive: catid parameter is appended

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:

  • No documentation changes for manual.joomla.org needed

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar SniperSister SniperSister - open - 20 Aug 2024
avatar SniperSister SniperSister - change - 20 Aug 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2024
Category Front End com_finder
avatar Hackwar Hackwar - change - 20 Aug 2024
The description was changed
avatar Hackwar Hackwar - edited - 20 Aug 2024
avatar Hackwar Hackwar - change - 20 Aug 2024
Labels Added: PR-4.4-dev
avatar richard67 richard67 - test_item - 20 Aug 2024 - Tested successfully
avatar richard67
richard67 - comment - 20 Aug 2024

I have tested this item ✅ successfully on c6b8a24


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

avatar richard67
richard67 - comment - 20 Aug 2024

Hint for other testers: The issue can be easily reproduced and the fix be tested when installing Blog sample data on a clean, current 4.4.7, adding a finder menu item and in the advanced settings for that menu item set the items per page to 5. Then call the page in frontend and search for "Joomla". Then check the links of the 2nd, 3rd, next and last page in the pagination.

avatar coolcat-creations coolcat-creations - test_item - 20 Aug 2024 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 20 Aug 2024

I have tested this item ✅ successfully on c6b8a24

Patch Works also in Joomla 5.1.3


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

avatar SniperSister SniperSister - change - 20 Aug 2024
Labels Added: bug
avatar richard67 richard67 - alter_testresult - 20 Aug 2024 - coolcat-creations: Tested successfully
avatar richard67 richard67 - alter_testresult - 20 Aug 2024 - richard67: Tested successfully
avatar richard67 richard67 - change - 20 Aug 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 20 Aug 2024

I've restored the previous human test results in the issue tracker as the change which invalidated the test count was just a code style change.

=> RTC


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

avatar dautrich dautrich - test_item - 20 Aug 2024 - Tested successfully
avatar dautrich
dautrich - comment - 20 Aug 2024

I have tested this item ✅ successfully on c9aaf5b

Tested on 5.1.3


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

avatar peteruoi
peteruoi - comment - 20 Aug 2024

Is there gonna be an immediate new release and wait for it or its gonna be days?

avatar bembelimen
bembelimen - comment - 20 Aug 2024

No release today

avatar dautrich
dautrich - comment - 21 Aug 2024

@peteruoi
You shouldn't wait with your update to J5.1.3, because the update is a security update. If necessary, you can apply the patch from this PR manually. It is an easy task, because only one file is involved; you only need to add some lines of code in one place.

avatar SniperSister SniperSister - change - 21 Aug 2024
Labels Added: RTC
avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2024
Category Front End com_finder Front End com_content com_finder
avatar SniperSister SniperSister - change - 21 Aug 2024
Title
[4.x] Fix paginated page links for com_finder
[4.x] Fix paginated page links for com_finder and com_content archive
avatar SniperSister SniperSister - edited - 21 Aug 2024
avatar SniperSister SniperSister - change - 21 Aug 2024
The description was changed
avatar SniperSister SniperSister - edited - 21 Aug 2024
avatar SniperSister
SniperSister - comment - 21 Aug 2024

@dautrich @richard67 @coolcat-creations I updated the PR to also cover a second bug in the com_content archive view, a test for that scenario would be much appreciated!

avatar coolcat-creations
coolcat-creations - comment - 21 Aug 2024

@SniperSister Test not successful ... See here with applied patch: https://playground.designedwithlove.de/de/archiv?month=0&year=2024&catid[0]=&start=5 and search for "About" - the title filter is reset on pagination change

avatar SniperSister
SniperSister - comment - 21 Aug 2024

@coolcat-creations excellent catch! Fixed!

avatar coolcat-creations
coolcat-creations - comment - 21 Aug 2024

@SniperSister what did you fix before because I could not catch an error before the fix there? :-)

avatar SniperSister
SniperSister - comment - 21 Aug 2024

@coolcat-creations i fixed the title filter that you mentioned

avatar coolcat-creations
coolcat-creations - comment - 21 Aug 2024

Ok thanks

avatar coolcat-creations
coolcat-creations - comment - 21 Aug 2024

Test successful

avatar jjnxpct
jjnxpct - comment - 21 Aug 2024

@peteruoi You shouldn't wait with your update to J5.1.3, because the update is a security update. If necessary, you can apply the patch from this PR manually. It is an easy task, because only one file is involved; you only need to add some lines of code in one place.

If you have many sites to manage (100+) manually fixing stuff will take a lot more time. So an update / fix through the Joomla updater would be very much appreciated.

avatar richard67 richard67 - change - 21 Aug 2024
Status Ready to Commit Pending
avatar richard67
richard67 - comment - 21 Aug 2024

Back to pending as there were made changes.


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

avatar richard67
richard67 - comment - 21 Aug 2024

Test successful

@coolcat-creations If you have successfully tested this PR, please mark your test result in the issue tracker https://issues.joomla.org/tracker/joomla-cms/43953 by using the blue "Test this" button at the top left corner, selecting your test result and finally submit. Thanks in advance.

avatar richard67
richard67 - comment - 21 Aug 2024

@peteruoi You shouldn't wait with your update to J5.1.3, because the update is a security update. If necessary, you can apply the patch from this PR manually. It is an easy task, because only one file is involved; you only need to add some lines of code in one place.

If you have many sites to manage (100+) manually fixing stuff will take a lot more time. So an update / fix through the Joomla updater would be very much appreciated.

@jjnxpct If your sites are all on 5.1.3, you have to do that only one time, and for the others you can just copy the 2 modified files. For sites which are on 4.4.7 you can directly use the modified files from this PR

avatar coolcat-creations coolcat-creations - test_item - 21 Aug 2024 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 21 Aug 2024

I have tested this item ✅ successfully on 8245571


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

avatar JohnVesey
JohnVesey - comment - 21 Aug 2024

Notes from a user:

  1. Fix works on J5.1.3 on PHP 8.2.15
  2. I needed to re-index Smart Search in /administrator as blank results were given when searching on the frontend.

Thank you for this fix ?

avatar hans2103 hans2103 - test_item - 21 Aug 2024 - Tested successfully
avatar hans2103
hans2103 - comment - 21 Aug 2024

I have tested this item ✅ successfully on 8245571


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

avatar richard67 richard67 - change - 21 Aug 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 21 Aug 2024

RTC


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

avatar SniperSister SniperSister - change - 22 Aug 2024
Labels Removed: RTC
avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2024
Category Front End com_finder com_content Front End com_content com_finder Libraries
avatar SniperSister
SniperSister - comment - 22 Aug 2024

I've merged the aditional Parameters that @Fedik suggested in #43954 to get one combined PR fixing the regressions

avatar SniperSister SniperSister - change - 22 Aug 2024
Labels Added: RTC
avatar richard67 richard67 - change - 22 Aug 2024
Status Ready to Commit Pending
avatar richard67
richard67 - comment - 22 Aug 2024

Back to pending as there were made changes.


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

avatar richard67
richard67 - comment - 22 Aug 2024

@coolcat-creations @dautrich @hans2103 Could you test again? Thanks in advance.

20d41c3 22 Aug 2024 avatar richard67 PHPCS
avatar richard67 richard67 - change - 22 Aug 2024
Labels Removed: RTC
avatar hans2103 hans2103 - test_item - 22 Aug 2024 - Tested successfully
avatar hans2103
hans2103 - comment - 22 Aug 2024

I have tested this item ✅ successfully on 20d41c3


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

avatar dautrich dautrich - test_item - 22 Aug 2024 - Tested successfully
avatar dautrich
dautrich - comment - 22 Aug 2024

I have tested this item ✅ successfully on 20d41c3


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

avatar dautrich
dautrich - comment - 22 Aug 2024

Hopefully, this is the last time this PR goes RTC.

avatar alikon alikon - change - 22 Aug 2024
Status Pending Ready to Commit
avatar alikon
alikon - comment - 22 Aug 2024

RTC


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

avatar MacJoom MacJoom - change - 22 Aug 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-08-22 13:12:03
Closed_By MacJoom
Labels Added: RTC
avatar MacJoom MacJoom - close - 22 Aug 2024
avatar MacJoom MacJoom - merge - 22 Aug 2024
avatar MacJoom
MacJoom - comment - 22 Aug 2024

Thank you for the quick fix!

avatar fontanil fontanil - test_item - 23 Aug 2024 - Tested successfully
avatar fontanil
fontanil - comment - 23 Aug 2024

I have tested this item ✅ successfully on 20d41c3

Tested successfully on a 5.1.4-RC-1 version


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

avatar sakiss
sakiss - comment - 23 Aug 2024

@SniperSister What about the "o" and "od" variables?
They stand for ordering and ordering direction.
Enable the "Show Sort Fields" setting in the Smart Search menu item (under Advanced).
Then use the ordering fields to change the order, in a result set that has several pages and try to change page.
The ordering field and direction are vanished.

avatar SniperSister
SniperSister - comment - 23 Aug 2024

@sakiss good catch, see #43967

Add a Comment

Login with GitHub to post a comment