RTC PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Attila-SWE
Attila-SWE
7 May 2025

Summary of Changes

Limit searchterm input to match database table limitations. Currently #_finder_logging has searchterm length of 255. I see (spambot?) searches with massive lengths that creates errors.

Testing Instructions

Go to

component/finder/search?Itemid=101&Itemid=101&q=harry+potter+at+hogwarts+if+ernie+introduced+himself+to+hannah+they+are+both+in+their+first+year+they+are+both+in+the+hufflepuff+common+room+after+the+sorting+on+the+night+before+classes+start+the+next+day+she+warmly+shakes+his+hand+he+is+very+nervous+she+patiently+listens+to+his+worries+and+she+helps+him+relax+as+they+discuss+the+next+seven+years+at+hogwarts+scene+and+dialogue

(yes... real search in error log)

Actual result BEFORE applying this Pull Request

Error page and

libraries/vendor/joomla/database/src/Mysqli/MysqliStatement.php:::411:::Data too long for column 'searchterm' at row 1

Expected result AFTER applying this Pull Request

Search page showing correctly but with trimmed search to 255 characters.

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

avatar Attila-SWE Attila-SWE - open - 7 May 2025
avatar Attila-SWE Attila-SWE - change - 7 May 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2025
Category Front End com_finder
avatar brianteeman
brianteeman - comment - 7 May 2025

When testing this make sure you set Gather Search Statistics in the component options to yes

image

avatar brianteeman
brianteeman - comment - 7 May 2025

As this is only relevant when Gather Search Statistics is on and this only truncates the data saved in the #__finder_logging table can you please rename this PR to reflect that.

Perhaps
[5.3] Limit length of searchterm logging to prevent MysqliStatement error

avatar brianteeman brianteeman - test_item - 7 May 2025 - Tested successfully
avatar brianteeman
brianteeman - comment - 7 May 2025

I have tested this item ✅ successfully on 62e1e31


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

avatar Attila-SWE Attila-SWE - change - 7 May 2025
Title
[5.3] Limit length of searchterm to prevent MysqliStatement error
[5.3] Limit length of searchterm logging to prevent MysqliStatement error
avatar Attila-SWE Attila-SWE - edited - 7 May 2025
avatar Attila-SWE Attila-SWE - test_item - 7 May 2025 - Tested successfully
avatar Attila-SWE
Attila-SWE - comment - 7 May 2025

I have tested this item ✅ successfully on 62e1e31


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

avatar brianteeman brianteeman - alter_testresult - 7 May 2025 - attila-swe: Not tested
avatar brianteeman
brianteeman - comment - 7 May 2025

@Attila-SWE I have removed your test as obviously we assume that you submit tested code ;)


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

avatar Attila-SWE
Attila-SWE - comment - 7 May 2025

I have tested this item ✅ successfully on 62e1e31

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

Am I as Pull Requester supposed to also check that I have tested this item successfully or is the point that 2 other persons should check this and that I as pull requester by default have tested successfully?

avatar Attila-SWE
Attila-SWE - comment - 7 May 2025

@Attila-SWE I have removed your test as obviously we assume that you submit tested code ;)

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

Thanks! I just wrote question about it! Understood.

avatar QuyTon QuyTon - test_item - 7 May 2025 - Tested successfully
avatar QuyTon
QuyTon - comment - 7 May 2025

I have tested this item ✅ successfully on 62e1e31


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

avatar QuyTon QuyTon - change - 7 May 2025
Status Pending Ready to Commit
Labels Added: PR-5.3-dev
avatar QuyTon
QuyTon - comment - 7 May 2025

RTC


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

avatar rdeutz rdeutz - change - 12 May 2025
Labels Added: RTC
avatar rdeutz rdeutz - change - 12 May 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-05-12 14:21:58
Closed_By rdeutz
avatar rdeutz rdeutz - close - 12 May 2025
avatar rdeutz rdeutz - merge - 12 May 2025

Add a Comment

Login with GitHub to post a comment